SOLVED docker bind mount propagation

crispyduck

Cadet
Joined
Jan 30, 2022
Messages
9
Hi,

is there any way to set the bind mount propagation? Inspecting the containers, it defaults to rprivate; I would need shared, but can't find a way to set it via gui/cli.

Br crispyduck
 

crispyduck

Cadet
Joined
Jan 30, 2022
Messages
9
Found it myself. Simply add :rslave to the dest mount path. e.g.: /mnt:rslave will result to:

"Type": "bind",
"Source": "/mnt/pool1/dataset1_1",
"Destination": "/mnt",
"Mode": "rslave",
"RW": true,
"Propagation": "rslave"

This is exactly what I needed, so the mount point is automatically created/deleted when adding/deleting child datasets.
 
Top