[Feature requests] lxc launch --description "This container runs HTTPd frontend"

Hello,

I do not know if this is the correct place to ask this but it would be great to be able to tag a description to containers created with LXD. This description could be outputed afterwards while listing container characteristics via “lxc info”.
This could be invoked with a “description” or “comment” optionnal tag appended to “lxc launch” command.
As the number of container grows it becomes difficult to track them all, this feature could help.
Regards,
D.

There is a description field on containers in recent LXD, it’s just not very visible.

stgraber@castiana:~$ lxc list -c ns46d
+-------------+---------+-----------------------+----------------------------------------------+-------------+
|    NAME     |  STATE  |         IPV4          |                     IPV6                     | DESCRIPTION |
+-------------+---------+-----------------------+----------------------------------------------+-------------+
| keybase     | RUNNING | 10.204.119.214 (eth0) | 2001:470:b368:4242:216:3eff:fe8e:9863 (eth0) |             |
+-------------+---------+-----------------------+----------------------------------------------+-------------+
| snapcraft   | STOPPED |                       |                                              |             |
+-------------+---------+-----------------------+----------------------------------------------+-------------+
| ups-monitor | STOPPED |                       |                                              |             |
+-------------+---------+-----------------------+----------------------------------------------+-------------+
| zerotier    | STOPPED |                       |                                              |             |
+-------------+---------+-----------------------+----------------------------------------------+-------------+
stgraber@castiana:~$ lxc config show keybase | sed "s/^description:.*/description: A keybase container/" | lxc config edit keybase
stgraber@castiana:~$ lxc list -c ns46d
+-------------+---------+-----------------------+----------------------------------------------+---------------------+
|    NAME     |  STATE  |         IPV4          |                     IPV6                     |     DESCRIPTION     |
+-------------+---------+-----------------------+----------------------------------------------+---------------------+
| keybase     | RUNNING | 10.204.119.214 (eth0) | 2001:470:b368:4242:216:3eff:fe8e:9863 (eth0) | A keybase container |
+-------------+---------+-----------------------+----------------------------------------------+---------------------+
| snapcraft   | STOPPED |                       |                                              |                     |
+-------------+---------+-----------------------+----------------------------------------------+---------------------+
| ups-monitor | STOPPED |                       |                                              |                     |
+-------------+---------+-----------------------+----------------------------------------------+---------------------+
| zerotier    | STOPPED |                       |                                              |                     |
+-------------+---------+-----------------------+----------------------------------------------+---------------------+

Thank you.
My LXD version was too old despite linking to official Ubuntu repo, I have now linked directly to https://launchpad.net/~ubuntu-lxc/+archive/ubuntu/lxd-stable and after upgrade the “Description” field is present and can be edited.
Thanks!
D.

You don’t need to switch to the PPA to get the newer LXD version if you’re on Ubuntu 16.04 LTS.

You can instead just do: apt install -t xenial-backports lxd lxd-client

The official backports benefit from official support from the LXD team, unlike the PPA which is auto-generated (and that we’re getting ready to phase out).