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

haosdent commented on MESOS-5953:
---------------------------------

I think need tp update here 
https://github.com/apache/mesos/blob/7864eb860cc5b6d12c4af968e85640613dc34f1d/src/slave/containerizer/mesos/isolators/docker/runtime.cpp#L384
 to set the work dir to {{/}} when {{WorkingDir}} is empty in the docker image 
manifest.

> Default work dir is not root for unified containerizer and docker
> -----------------------------------------------------------------
>
>                 Key: MESOS-5953
>                 URL: https://issues.apache.org/jira/browse/MESOS-5953
>             Project: Mesos
>          Issue Type: Bug
>          Components: containerization
>    Affects Versions: 1.0.0
>            Reporter: Philip Winder
>
> According to the docker spec, the default working directory (WORKDIR) is root 
> /. https://docs.docker.com/engine/reference/run/#/workdir
> The unified containerizer with the docker runtime isolator sets the default 
> working directory to /tmp/mesos/sandbox.
> Hence, dockerfiles that are relying on the default workdir will not work 
> because the pwd is changed by mesos.



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

Reply via email to