[
https://issues.apache.org/jira/browse/MESOS-9009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16678863#comment-16678863
]
Jason Lai commented on MESOS-9009:
----------------------------------
Discussed in [one of the previous WG
sync|https://docs.google.com/document/d/1z55a7tLZFoRWVuUxz1FZwgxkHeugtc2nHR89skFXSpU/edit?pli=1#heading=h.jhr91rmesh0a].
Patches include:
* https://reviews.apache.org/r/65811/
* https://reviews.apache.org/r/68832/
* https://reviews.apache.org/r/69286/
* https://reviews.apache.org/r/69287/
> Support for creation non-existing host paths in a whitelist as source paths
> ---------------------------------------------------------------------------
>
> Key: MESOS-9009
> URL: https://issues.apache.org/jira/browse/MESOS-9009
> Project: Mesos
> Issue Type: Task
> Components: containerization
> Affects Versions: 1.8.0
> Reporter: Jason Lai
> Assignee: Jason Lai
> Priority: Major
> Labels: containerizer, mount, path
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)