2025-03-14 21:59:59 -06:00
|
|
|
# lxc-create
|
|
|
|
|
|
|
|
|
|
> Crea contenedores linux.
|
2025-07-24 22:27:13 -06:00
|
|
|
> Más información: <https://linuxcontainers.org/lxc/getting-started/>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Crea un contenedor interactivamente en `/var/lib/lxc/`:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`sudo lxc-create {{[-n|--name]}} {{contenedor}} {{[-t|--template]}} download`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Crea un contenedor en un directorio de destino:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`sudo lxc-create {{[-P|--lxcpath]}} {{/ruta/al/directorio/}} {{[-n|--name]}} {{contenedor}} {{[-t|--template]}} download`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Crea un contenedor pasando opciones a una plantilla:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`sudo lxc-create {{[-n|--name]}} {{nombre}} {{[-t|--template]}} download -- {{[-d|--dist]}} {{nombre-distro}} {{[-r|--release]}} {{versión-de-lanzamiento}} {{[-a|--arch]}} {{arch}}`
|
2025-07-24 22:27:13 -06:00
|
|
|
|
|
|
|
|
- Muestra ayuda:
|
|
|
|
|
|
|
|
|
|
`lxc-create {{[-?|--help]}}`
|