mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 16:42:35 +00:00
30 lines
564 B
Plaintext
30 lines
564 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# lxc-start
|
|
|
|
> Start a container.
|
|
> More information: <https://linuxcontainers.org/lxc/getting-started/>.
|
|
|
|
- Start the lxc service:
|
|
|
|
`systemctl start lxc-net`
|
|
|
|
- Start a container:
|
|
|
|
`sudo lxc-start {{container_name}}`
|
|
|
|
- Start a container in the foreground:
|
|
|
|
`sudo lxc-start {{container_name}} {{[-F|--foreground]]}`
|
|
|
|
- Exit out of a foreground container (run this in a separate terminal):
|
|
|
|
`sudo lxc-stop {{container_name}}`
|
|
|
|
- Display help:
|
|
|
|
`lxc-start {{[-?|--help]}}`
|