[ 
https://issues.apache.org/jira/browse/MESOS-5389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15286100#comment-15286100
 ] 

Guangya Liu commented on MESOS-5389:
------------------------------------

I think that for docker containerizer, we should keep the behaviour same as 
docker, the {{man docker run}} will report the following:

{code}
 -v|--volume[=[[HOST-DIR:]CONTAINER-DIR[:OPTIONS]]]
          Create a bind mount. If you specify, -v /HOST-DIR:/CONTAINER-DIR, 
Docker
          bind mounts /HOST-DIR in the host to /CONTAINER-DIR in the Docker
          container. If 'HOST-DIR' is omitted,  Docker automatically creates 
the new
          volume on the host.  The OPTIONS are a comma delimited list and can 
be:

       0

              item [rw|ro] item [z|Z] item [[r]shared|[r]slave|[r]private] item 
[nocopy]

       The  CONTAINER-DIR  must  be  an  absolute  path such as /src/docs. The 
HOST-DIR can be an absolute path or a name value. A name value must start with 
an alphanumeric character, followed by
       a-z0-9, _ (underscore), . (period) or - (hyphen). An absolute path 
starts with a / (forward slash).
{code}

It highlight that the {{The  CONTAINER-DIR  must  be  an  absolute  path such 
as /src/docs. }}.


> docker containerizer should prefix relative volume.container_path values with 
> the path to the sandbox
> -----------------------------------------------------------------------------------------------------
>
>                 Key: MESOS-5389
>                 URL: https://issues.apache.org/jira/browse/MESOS-5389
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: James DeFelice
>              Labels: docker, mesosphere, storage, volumes
>
> docker containerizer currently requires absolute paths for values of 
> volume.container_path. this is inconsistent with the mesos containerizer 
> which requires relative container_path. it makes for a confusing API. both at 
> the Mesos level as well as at the Marathon level.
> ideally the docker containerizer would allow a framework to specify a 
> relative path for volume.container_path and in such cases automatically 
> convert it to an absolute path by prepending the sandbox directory to it.
> /cc [~jieyu]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to