1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 02:06:02 +02:00
tldr/pages/linux/lxc-create.md
2025-03-01 08:52:02 +01:00

547 B

lxc-create

Create linux containers. More information: https://linuxcontainers.org/lxc/getting-started.

  • Create a container interactively in /var/lib/lxc/:

sudo lxc-create --name {{container}} --template download

  • Create a container in a target directory:

sudo lxc-create --lxcpath {{/path/to/directory/}} --name {{container}} --template download

  • Create a container passing options to a template:

sudo lxc-create --name {{name}} --template download -- --dist {{distro-name}} --release {{release-version}} --arch {{arch}}