-t ubuntu -- -h still creates container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
$ sudo lxc-create -n sso -t ubuntu -- --help
No config file specified, using the default config
/usr/lib/
[-F | --flush-cache] [-r|--release <release>] [ -S | --auth-key <keyfile>]
release: the ubuntu release (e.g. precise): defaults to host release on ubuntu, otherwise uses latest LTS
trim: make a minimal (faster, but not upgrade-safe) container
bindhome: bind <user>'s home into the container
The ubuntu user will not be created, and <user> will have
sudo access.
arch: the container architecture (e.g. amd64): defaults to host arch
auth-key: SSH Public key file to inject into container
'ubuntu' template installed
'sso' created
Related branches
Changed in lxc (Ubuntu): | |
importance: | Undecided → High |
status: | New → Triaged |
importance: | High → Medium |
Note that "lxc-create -t ubuntu -h" would give the ubuntu template help output and not leave a partially created container.
Because of the architecture of the lxc templates, there doesn't seem to be a simple, clean way of having the lxc-create script clean up after the ubuntu template was called with -h or --help. Two options are (1) have lxc-create look for -h or --help in the template arguments, or (2) have the ubuntu template return 1 (error) after --help.
I will take the first approach.