mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
lxc-{checkconfig, destroy, start, stop, info, attach}: add page; lxc-ls: add an example and sudo (#15835)
This commit is contained in:
parent
c8c92580da
commit
770a8c109e
7 changed files with 60 additions and 4 deletions
8
pages/linux/lxc-attach.md
Normal file
8
pages/linux/lxc-attach.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# lxc-attach
|
||||
|
||||
> Attach to a container.
|
||||
> More information: <https://linuxcontainers.org/lxc/getting-started/>.
|
||||
|
||||
- Attach to a container:
|
||||
|
||||
`sudo lxc-attach {{container_name}}`
|
12
pages/linux/lxc-checkconfig.md
Normal file
12
pages/linux/lxc-checkconfig.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# lxc-checkconfig
|
||||
|
||||
> Check a kernel for LXC support.
|
||||
> More information: <https://linuxcontainers.org/lxc/getting-started/>.
|
||||
|
||||
- Check the current kernel for LXC support:
|
||||
|
||||
`lxc-checkconfig`
|
||||
|
||||
- Check any kernel for LXC support:
|
||||
|
||||
`CONFIG={{/path/to/configuration}} lxc-checkconfig`
|
8
pages/linux/lxc-destroy.md
Normal file
8
pages/linux/lxc-destroy.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# lxc-destroy
|
||||
|
||||
> Delete a container.
|
||||
> More information: <https://linuxcontainers.org/lxc/getting-started/>.
|
||||
|
||||
- Delete a container:
|
||||
|
||||
`sudo lxc-destroy {{container_name}}`
|
8
pages/linux/lxc-info.md
Normal file
8
pages/linux/lxc-info.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# lxc-info
|
||||
|
||||
> Get info on a container.
|
||||
> More information: <https://linuxcontainers.org/lxc/getting-started/>.
|
||||
|
||||
- Query information from a container:
|
||||
|
||||
`sudo lxc-info {{container_name}}`
|
|
@ -3,18 +3,22 @@
|
|||
> List Linux containers.
|
||||
> More information: <https://linuxcontainers.org/lxc/manpages/man1/lxc-ls.1.html>.
|
||||
|
||||
- List all containers:
|
||||
|
||||
`sudo lxc-ls`
|
||||
|
||||
- List active containers (including frozen and running):
|
||||
|
||||
`lxc-ls --active`
|
||||
`sudo lxc-ls --active`
|
||||
|
||||
- List only frozen containers:
|
||||
|
||||
`lxc-ls --frozen`
|
||||
`sudo lxc-ls --frozen`
|
||||
|
||||
- List only stopped containers:
|
||||
|
||||
`lxc-ls --stopped`
|
||||
`sudo lxc-ls --stopped`
|
||||
|
||||
- List containers in a fancy, column-based output:
|
||||
|
||||
`lxc-ls --fancy`
|
||||
`sudo lxc-ls --fancy`
|
||||
|
|
8
pages/linux/lxc-start.md
Normal file
8
pages/linux/lxc-start.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# lxc-start
|
||||
|
||||
> Start a container.
|
||||
> More information: <https://linuxcontainers.org/lxc/getting-started/>.
|
||||
|
||||
- Start a container:
|
||||
|
||||
`sudo lxc-start {{container_name}}`
|
8
pages/linux/lxc-stop.md
Normal file
8
pages/linux/lxc-stop.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# lxc-stop
|
||||
|
||||
> Stop a container.
|
||||
> More information: <https://linuxcontainers.org/lxc/getting-started/>.
|
||||
|
||||
- Stop a container:
|
||||
|
||||
`sudo lxc-stop {{container_name}}`
|
Loading…
Add table
Reference in a new issue