Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lxc-{checkconfig, destroy, start, stop, info, attach}: add page; lxc-ls: add an example #15835

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
8 changes: 8 additions & 0 deletions pages/linux/lxc-attach.md
Original file line number Diff line number Diff line change
@@ -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 changes: 12 additions & 0 deletions pages/linux/lxc-checkconfig.md
Original file line number Diff line number Diff line change
@@ -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 changes: 8 additions & 0 deletions pages/linux/lxc-destroy.md
Original file line number Diff line number Diff line change
@@ -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 changes: 8 additions & 0 deletions pages/linux/lxc-info.md
Original file line number Diff line number Diff line change
@@ -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}}`
4 changes: 4 additions & 0 deletions pages/linux/lxc-ls.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
> 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`
Expand Down
8 changes: 8 additions & 0 deletions pages/linux/lxc-start.md
Original file line number Diff line number Diff line change
@@ -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 changes: 8 additions & 0 deletions pages/linux/lxc-stop.md
Original file line number Diff line number Diff line change
@@ -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}}`