Cannot connect to docker daemon when using DockerOperator in Astronomer

Hi, I try to create task using Dockeroperator.
It has same error with this issue Error checking docker-compose status: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

But in that thread, the solution is running docker in host. I already running my docker, but the issue still persisted. I already search other solution in other forum, and they said we can solved this issue with mount docker socket to container

But in the link above, they using docker compose manually to create airflow in docker.

So, how I can mount additional volume in astro, just like in docker compose?

Hey @riodpp

Astronomer does not recommend using DockerOperator. You can use KubernetesPodOperator to achieve the similar result on Astro. To mount a temporary directory in KPO, you can refer to this doc.

Hopefully this works!

Thanks
Manmeet