Comment 1 for bug 1530413

Revision history for this message
Stéphane Graber (stgraber) wrote :

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.