snippetbashTip
lxc-ls — List Linux containers. More information: <https://linuxcontainers.org/lxc/manpages/man1/lxc-ls.1.htm
Viewed 0 times
commandcliinformationlxc-lslinuxmorelistcontainers
linux
Problem
How to use the
lxc-ls command: List Linux containers. More information: <https://linuxcontainers.org/lxc/manpages/man1/lxc-ls.1.html>.Solution
lxc-ls — List Linux containers. More information: <https://linuxcontainers.org/lxc/manpages/man1/lxc-ls.1.html>.List all containers:
sudo lxc-lsList active containers (including frozen and running):
sudo lxc-ls --activeList only frozen containers:
sudo lxc-ls --frozenList only stopped containers:
sudo lxc-ls --stoppedList containers in a fancy, column-based output:
sudo lxc-ls {{[-f|--fancy]}}Display help:
lxc-ls {{[-?|--help]}}Code Snippets
List all containers
sudo lxc-lsList active containers (including frozen and running)
sudo lxc-ls --activeList only frozen containers
sudo lxc-ls --frozenList only stopped containers
sudo lxc-ls --stoppedList containers in a fancy, column-based output
sudo lxc-ls {{[-f|--fancy]}}Context
tldr-pages: linux/lxc-ls
Revisions (0)
No revisions yet.