2025-03-14 21:59:59 -06:00
|
|
|
# lxc-ls
|
|
|
|
|
|
|
|
|
|
> List Linux containers.
|
|
|
|
|
> More information: <https://linuxcontainers.org/lxc/manpages/man1/lxc-ls.1.html>.
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
- List all containers:
|
|
|
|
|
|
|
|
|
|
`sudo lxc-ls`
|
|
|
|
|
|
2025-03-14 21:59:59 -06:00
|
|
|
- List active containers (including frozen and running):
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`sudo lxc-ls --active`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List only frozen containers:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`sudo lxc-ls --frozen`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List only stopped containers:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`sudo lxc-ls --stopped`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List containers in a fancy, column-based output:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`sudo lxc-ls {{[-f|--fancy]}}`
|