list available distributions images
This commit is contained in:
parent
b27a176565
commit
04d1cd228e
10
lxc_tips.md
10
lxc_tips.md
@ -5,6 +5,10 @@
|
|||||||
* `$ lxc launch [distribution] [name]`
|
* `$ lxc launch [distribution] [name]`
|
||||||
* **example:** `$ lxc launch images:debian/10 debian-container`
|
* **example:** `$ lxc launch images:debian/10 debian-container`
|
||||||
|
|
||||||
|
## List available distribution images
|
||||||
|
|
||||||
|
* `$ lxc image list images:`
|
||||||
|
|
||||||
## List existing containers
|
## List existing containers
|
||||||
|
|
||||||
* `$ lxc list`
|
* `$ lxc list`
|
||||||
@ -53,10 +57,10 @@
|
|||||||
|
|
||||||
This feature is only available when LXD is installed.
|
This feature is only available when LXD is installed.
|
||||||
|
|
||||||
* When creating a container: `lxc launch [distribution] [name] -c security.privileged=true`
|
* When creating a container: `$ lxc launch [distribution] [name] -c security.privileged=true`
|
||||||
* Updating an existing container: `lxc config set [container] security.privileged=true`
|
* Updating an existing container: `$ lxc config set [container] security.privileged=true`
|
||||||
|
|
||||||
When a container is privileged, we can share folders from the host to the container.
|
When a container is privileged, we can share folders from the host to the container.
|
||||||
|
|
||||||
* Adding a shared folder: `lxc config device add [container] [dir/homedir] disk source=[/host/path/] path=[/container/path]`
|
* Adding a shared folder: `$ lxc config device add [container] [dir/homedir] disk source=[/host/path/] path=[/container/path]`
|
||||||
* **example:** `$ lxc config device add test homedir disk source=/home/$USER path=/home/ubuntu`
|
* **example:** `$ lxc config device add test homedir disk source=/home/$USER path=/home/ubuntu`
|
Loading…
Reference in New Issue
Block a user