Update 'lxc_tips.md'

This commit is contained in:
keb 2020-04-21 20:44:46 +00:00
parent fffaa20d24
commit 15b146ecc5

View File

@ -62,5 +62,7 @@ This feature is only available when LXD is installed.
When a container is privileged, we can share folders from the host to the container, in a **read-write** manner. We can still add a shared folder with unprivileged containers, but they will be **read-only** (chowned at nobody:nobody).
Note that you will need to change the group and user of the folder to the corresponding one of lxd (use `id lxd` to know it) before adding it.
* Adding a shared folder: `$ lxc config device add [container] [share_name] disk source=[/host/path/] path=[/container/path]`
* **example:** `$ lxc config device add test-container home_dir disk source=/home/$USER path=/home/ubuntu`