Update 'lxc_tips.md'

This commit is contained in:
keb 2019-11-07 21:53:29 +00:00
parent 04d1cd228e
commit 353901b5f6

View File

@ -58,9 +58,9 @@
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`
* Please note that this parameter apparently cannot be changed later.
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]`
* **example:** `$ lxc config device add test homedir disk source=/home/$USER path=/home/ubuntu`
* Adding a shared folder: `$ lxc config device add [container] [share_name] disk source=[/host/path/] path=[/container/path]`
* **example:** `$ lxc config device add test home_dir disk source=/home/$USER path=/home/ubuntu`