[
https://issues.apache.org/jira/browse/AIRFLOW-1381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16856639#comment-16856639
]
ASF subversion and git services commented on AIRFLOW-1381:
----------------------------------------------------------
Commit 9b580415743da2f23cb996d81511b9a29865990d in airflow's branch
refs/heads/master from OmerJog
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=9b58041 ]
[AIRFLOW-1381] Allow setting host temporary directory in DockerOperator (#5369)
Allow user to specify temporary directory to use on the host machine;
default settings will cause an error on OS X due to the standard
temporary directory not being shared to Docker.
Based on PR #2418 by [email protected]. Closes #2418 #4315
> DockerOperator does not allow specification of temporary directory on host
> --------------------------------------------------------------------------
>
> Key: AIRFLOW-1381
> URL: https://issues.apache.org/jira/browse/AIRFLOW-1381
> Project: Apache Airflow
> Issue Type: Improvement
> Components: operators
> Affects Versions: 1.9.0
> Environment: Causes failure under default conditions in OS X
> Reporter: Benjamin Sims
> Priority: Minor
> Labels: docker
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> The Docker uses the standard TemporaryDirectory mechanism to add a volume to
> the container which is mapped to a temporary directory on the host.
> By default, TemporaryDirectory places this in a location such as
> /var/folders/xxx/xxxxx/T/airflowtmpyi9pnn6w.
> However, Docker on OS X only allows certain folders to be shared into a
> container. /var/folders is not shared on OS X (and cannot be shared) and the
> operator will therefore fail with a 'Mounts denied' message.
> This can be solved by setting the environment variable TMPDIR to a path which
> Docker is able to share. However a solution to set this in the Operator
> itself would also be useful.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)