[pkg-lxc-devel] Bug#845767: Bug#845767: lxc-create --help shows option --list for template downloader which is ignored

Evgeni Golov evgeni at debian.org
Sun Nov 27 11:36:45 UTC 2016

Hey Michael,

On Sat, Nov 26, 2016 at 04:36:05PM +0100, Michael Ablassmeier wrote:
> > lxc-create --template download --help 
> shows something along the lines:
> > Special arguments:
> > [..]
> > [ -l | --list ]: List all available images and exit.
> but using the --list option is ignored ..
> > lxc-create --template download --list
> will not output a list of available images as
> described.

Yeah… You must pass --list to the template script, not to lxc-create:

 lxc-create --template download -- --list

But that will complain that you did not pass a container name *sigh*, so you end up with:

 lxc-create -t download -n foo -- -l
Setting up the GPG keyring
Downloading the image index

alpine	3.1	amd64	default	20161126_17:50
ubuntu	zesty	s390x	default	20161127_03:49
lxc-create: lxccontainer.c: create_run_template: 1290 container creation template for foo failed
lxc-create: tools/lxc_create.c: main: 318 Error creating container foo

Not nice, but there is your list.

Does that help you?


More information about the Pkg-lxc-devel mailing list