1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 03:35:41 +02:00

lxc-create: add sudo (#15827)

This commit is contained in:
Managor 2025-03-01 09:52:02 +02:00 committed by GitHub
parent 1422efad18
commit 726bc74bbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,12 +5,12 @@
- Create a container interactively in `/var/lib/lxc/`:
`lxc-create --name {{container}} --template download`
`sudo lxc-create --name {{container}} --template download`
- Create a container in a target directory:
`lxc-create --lxcpath {{/path/to/directory/}} --name {{container}} --template download`
`sudo 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}}`
`sudo lxc-create --name {{name}} --template download -- --dist {{distro-name}} --release {{release-version}} --arch {{arch}}`