mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-08 16:55:24 +02:00
20 lines
714 B
Markdown
20 lines
714 B
Markdown
# lxc-create
|
|
|
|
> Crea contenedores linux.
|
|
> Más información: <https://linuxcontainers.org/lxc/getting-started/>.
|
|
|
|
- Crea un contenedor interactivamente en `/var/lib/lxc/`:
|
|
|
|
`sudo lxc-create {{[-n|--name]}} {{contenedor}} {{[-t|--template]}} download`
|
|
|
|
- Crea un contenedor en un directorio de destino:
|
|
|
|
`sudo lxc-create {{[-P|--lxcpath]}} {{/ruta/al/directorio/}} {{[-n|--name]}} {{contenedor}} {{[-t|--template]}} download`
|
|
|
|
- Crea un contenedor pasando opciones a una plantilla:
|
|
|
|
`sudo lxc-create {{[-n|--name]}} {{nombre}} {{[-t|--template]}} download -- {{[-d|--dist]}} {{nombre-distro}} {{[-r|--release]}} {{versión-de-lanzamiento}} {{[-a|--arch]}} {{arch}}`
|
|
|
|
- Muestra ayuda:
|
|
|
|
`lxc-create {{[-?|--help]}}`
|