mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
17 lines
532 B
Markdown
17 lines
532 B
Markdown
![]() |
# lxc-create
|
||
|
|
||
|
> Create linux containers.
|
||
|
> More information: <https://linuxcontainers.org/lxc/getting-started>.
|
||
|
|
||
|
- Create a container interactively in `/var/lib/lxc/`:
|
||
|
|
||
|
`lxc-create --name {{container}} --template download`
|
||
|
|
||
|
- Create a container in a target directory:
|
||
|
|
||
|
`lxc-create --lxcpath {{/path/to/directory/}} --name {{container}} --template download`
|
||
|
|
||
|
- Create a container passing options to a template:
|
||
|
|
||
|
`lxc-create --name {{name}} --template download -- --dist {{distro-name}} --release {{release-version}} --arch {{arch}}`
|