list available distributions images

This commit is contained in:
Théo Marchal 2019-10-29 13:11:21 +01:00
parent b27a176565
commit 04d1cd228e

View File

@ -5,6 +5,10 @@
* `$ lxc launch [distribution] [name]`
* **example:** `$ lxc launch images:debian/10 debian-container`
## List available distribution images
* `$ lxc image list images:`
## List existing containers
* `$ lxc list`
@ -53,10 +57,10 @@
This feature is only available when LXD is installed.
* When creating a container: `lxc launch [distribution] [name] -c security.privileged=true`
* Updating an existing container: `lxc config set [container] 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`
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`