Hi everybody,
I'm stuck about mounting an host directory into an LXC container; the directory has to be read/write and the container is unpriviledged.
Some googling leads me to bind mount points but the instructions here doesn't looks very clear for me; moreover issuing a command like:
pct set 103 --mp0 /host/dir /container/mount/point
(where 103 is my container ID)
leads to result:
400 too many arguments
pct set <vmid> [OPTIONS]
I tried to directly modify the file in /var/lib/lxc/103/config following the indications in LXC.CONTAINER.CONF but it seems that this file is overwritten every time the container is started.
A working example and / or a link to document is strongly appreciated.
TIA
Francesco
I'm stuck about mounting an host directory into an LXC container; the directory has to be read/write and the container is unpriviledged.
Some googling leads me to bind mount points but the instructions here doesn't looks very clear for me; moreover issuing a command like:
pct set 103 --mp0 /host/dir /container/mount/point
(where 103 is my container ID)
leads to result:
400 too many arguments
pct set <vmid> [OPTIONS]
I tried to directly modify the file in /var/lib/lxc/103/config following the indications in LXC.CONTAINER.CONF but it seems that this file is overwritten every time the container is started.
A working example and / or a link to document is strongly appreciated.
TIA
Francesco