diff --git a/lxc_tips.md b/lxc_tips.md index 5bcc970..7b9ab75 100644 --- a/lxc_tips.md +++ b/lxc_tips.md @@ -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` \ No newline at end of file