You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Tom Arnfeld (JIRA)" <ji...@apache.org> on 2015/04/12 16:28:12 UTC

[jira] [Updated] (MESOS-2612) Docker containerizer does not set MESOS_DIRECTORY

     [ https://issues.apache.org/jira/browse/MESOS-2612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Arnfeld updated MESOS-2612:
-------------------------------
    Description: 
The {{MESOS_DIRECTORY}} environment variable can be used to get the path to the working directory of the task/executor, aka the sandbox directory. However, a differently named environment variable is used in the Docker containerizer, which is inconsistent with the mesos containerizer and the external containerizer.

The variable {{MESOS_DIRECTORY}} is actually set in the containerizer utils and is shared code, however the call to this in the docker code seems to be wrapped in an if() https://github.com/apache/mesos/blob/00318fc1b30fc0961c2dfa4d934c37866577d801/src/slave/containerizer/docker.hpp#L353-L361.

I can't find any other instances of {{MESOS_SANDBOX}} except inside the docker code.

Ping [~tnachen] 

  was:
The {{MESOS_DIRECTORY}} environment variable can be used to get the path to the working directory of the task/executor, aka the sandbox directory. However, a differently named environment variable is used in the Docker containerizer, which is inconsistent with the mesos containerizer and the external containerizer.

The variable {{MESOS_DIRECTORY}} is actually set in the containerizer utils and is shared code, however the call to this in the docker code seems to be wrapped in an if() https://github.com/apache/mesos/blob/00318fc1b30fc0961c2dfa4d934c37866577d801/src/slave/containerizer/docker.hpp#L353-L361.

Ping [~tnachen] 


> Docker containerizer does not set MESOS_DIRECTORY
> -------------------------------------------------
>
>                 Key: MESOS-2612
>                 URL: https://issues.apache.org/jira/browse/MESOS-2612
>             Project: Mesos
>          Issue Type: Bug
>          Components: containerization, docker, slave
>    Affects Versions: 0.22.0
>            Reporter: Tom Arnfeld
>
> The {{MESOS_DIRECTORY}} environment variable can be used to get the path to the working directory of the task/executor, aka the sandbox directory. However, a differently named environment variable is used in the Docker containerizer, which is inconsistent with the mesos containerizer and the external containerizer.
> The variable {{MESOS_DIRECTORY}} is actually set in the containerizer utils and is shared code, however the call to this in the docker code seems to be wrapped in an if() https://github.com/apache/mesos/blob/00318fc1b30fc0961c2dfa4d934c37866577d801/src/slave/containerizer/docker.hpp#L353-L361.
> I can't find any other instances of {{MESOS_SANDBOX}} except inside the docker code.
> Ping [~tnachen] 



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