Update 'lxc_tips.md'
This commit is contained in:
parent
04d1cd228e
commit
353901b5f6
@ -58,9 +58,9 @@
|
|||||||
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`
|
* 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.
|
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] [share_name] 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 home_dir disk source=/home/$USER path=/home/ubuntu`
|
Loading…
Reference in New Issue
Block a user