1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/lxc-start.md

25 lines
472 B
Markdown
Raw Normal View History

# 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}}`
2025-03-26 00:36:41 +02:00
- Display help:
`lxc-start {{[-?|--help]}}`