1
0
Fork 0
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:
Managor 2025-03-07 14:07:13 +02:00 committed by GitHub
parent c8c92580da
commit 770a8c109e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 60 additions and 4 deletions

View 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}}`

View 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`

View 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
View 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}}`

View file

@ -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
View 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
View 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}}`