Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Done
-
None
-
Containerization RI11 Sp 40
-
5
Description
Docker creates a directory specified in docker run's --volume/-v option as the source path that will get bind-mounted into the container, if the source location didn't originally exist on the host.
Unlike Docker, UCR bails on launching containers if any of their host mount paths doesn't originally exist. While this is more secure and eliminates unnecessary side effects, it breaks transparent compatibility when trying to migrate from Docker.
As a trade-off, we should allow host path creation in a restricted manner, by introducing a new Mesos agent flag (--host_path_volume_force_creation) as a colon-separated whitelist (similar to the format of POSIX's $PATH environment variable), under whose items' subdirectories the host paths are allowed to be created.