Thanks for reporting this.

images.linuxcontainers.org is a fake LXD server implemented through
static files and rewrite rules, it doesn't implement the API that "alias
list" uses. I'll add the missing file to images.linuxcontainers.org
which should take care of the error you've received.

And yes, I agree that the help here could do with some improvement, at
the very least point to other help messages to better understand some of
the concepts.


Briefly:
 - The LXD text client (lxc) can interact with multiple servers, those are 
called "remotes" and can be added/changed/removed through "lxc remote ..."
 - LXD is image based, all containers must be created from an image. The unique 
identifier used by LXD for images is the sha256 of their compressed tarball 
representation. As humans don't usually enjoy typing a full sha256 to tell LXD 
what they want, LXD has the concept of image aliases which is a human-friendly 
name that you can add to a particular image.

So the two commands you typed did:
 - lxc remote add store2 images.linuxcontainers.org
   Added a new remote called "store2" pointing to the public image server (fake 
LXD) at images.linuxcontainers.org
 - lxc image alias list store2:
   Attempted to list all image aliases set on the "store2" remote.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1530413

Title:
  confusing example from 'lxc help image'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1530413/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to