How to show description of lxd instance?

Hi,

I have added a description to the instance, but when lxc list, it was not displayed, I have to do:

lxc config edit u1

to see the description field, is there a better way?

Thanks

Hi,

you can use the --columns flag in lxc ls:

$ lxc ls --columns=nd
+-----------------------+-------------+
|         NAME          | DESCRIPTION |
+-----------------------+-------------+
| c1                    |             |
+-----------------------+-------------+

See lxc ls --help for more.

1 Like

works! Thanks