diff --git a/dockerspawner/dockerspawner.py b/dockerspawner/dockerspawner.py index 541c300..26ed7e6 100644 --- a/dockerspawner/dockerspawner.py +++ b/dockerspawner/dockerspawner.py @@ -891,6 +891,8 @@ def _fmt(v): args = dict(mount) args["source"] = _fmt(mount["source"]) args["target"] = _fmt(mount["target"]) + args["type"] = mount.get("type", "volume") + args["read_only"] = mount.get("read_only", False) mounts.append(Mount(**args)) return mounts