[
https://issues.apache.org/jira/browse/MESOS-5953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15402294#comment-15402294
]
Jie Yu commented on MESOS-5953:
-------------------------------
I feel like we should not strictly follow Docker engine semantics here. Mesos
has this notion of sandbox ($MESOS_SANDBOX). It makes more sense to set workdir
to $MESOS_SANDBOX if it's not set in Dockerfile than setting to `/`.
> 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)