You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/03/03 17:27:29 UTC

[GitHub] [airflow] xinbinhuang commented on issue #14573: DockerOperator: OCI Runtime create failed: exec: "PYTHONPATH=.": executable file not found in $PATH: unknown

xinbinhuang commented on issue #14573:
URL: https://github.com/apache/airflow/issues/14573#issuecomment-789908559


   Does below work? The `command` should be the same as what you pass in `... -v /xyz:/xyz -it <docker_image_name> <command>` using normal docker command
   
   ```python
   t = DockerOperator(
                   ....,
                   command='bash -c "PYTHONPATH=. python3 scripts/xyz.py"',
                   mounts=[...],
                   docker_url="tcp://0.0.0.0:2375",
                   ...
           )
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org