Can't pull and push images to local nexus in DAGs #40234
-
|
Hi I have noticed that the airflow has the docker cli but seems like it doesn't contain docker.sock. I have volume from my server docker.sock to the services of my airflow container. I don't know if the way I'm trying to use docker in my DAG is correct or not, but I'm seeking help for how to use docker login on a insecure registry in DAGS ? (I'm using main docker-compose of airflow and also extended the airflow image with a docker file) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
CAN'T STAND ALL CAPS TITLES IN DISCUSSIONS |
Beta Was this translation helpful? Give feedback.
-
|
You need to use docker-in-docker and mount your sock to your image when you run it. That's standard way how you run docker commands from inside docker - and it's a deployment configuration not airflow image configuration, You will google it when searching "docker-in-docker" |
Beta Was this translation helpful? Give feedback.
You need to use docker-in-docker and mount your sock to your image when you run it. That's standard way how you run docker commands from inside docker - and it's a deployment configuration not airflow image configuration, You will google it when searching "docker-in-docker"