Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion dockerspawner/swarmspawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,16 @@ def mount_driver_config(self):
)
return None

volume_binds_mount_type = Unicode(
default_value="bind",
allow_None=False,
config=True,
help="""
Use this mount type for creating mounts of volume_binds.
Check https://docs.docker.com/engine/storage/volumes/ for allowed mount types.
""",
)

@property
def mounts(self):
if len(self.volume_binds):
Expand All @@ -124,7 +134,7 @@ def mounts(self):
Mount(
target=vol["bind"],
source=host_loc,
type="bind",
type=self.volume_binds_mount_type,
read_only=vol["mode"] == "ro",
driver_config=driver,
)
Expand Down
Loading