lxc list --format json

Category: Kubernetes & Containers

lxc list --format json

List instances as JSON

Lists every LXD instance (container or VM) as machine-readable JSON instead of the default table, handy for scripting and jq. The plain lxc list is covered in the master glossary. Add filters, for example lxc list type=container status=running.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.