LXD - listing container names with lxc

Options when using the lxc list command

You can specify which columns to display when running the list command by setting the -c flag.

Just display the container names

lxc list -c n

Format the lxc list results into csv and just return container names.

lxc list -c n --format=csv

LXD containers are light weight, fast and stable and the lxc command line options are full featured.