I am using a third party library that creates sibling docker containers via:
docker run -d /var/run/docker.sock:/var/run/docker.sock ...
I am trying to create a Kubernetes deployment out of the above container, but currently getting:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
This is expected because I am not declaring /var/run/docker.sock
as a volume in the deployment yaml.
The problem is I don't know how to do this. Is it possible to mount /var/run/docker.sock
as a volume in a deployment yaml?
If not, what is the best approach to run docker sibling-containers from within a Kubernetes deployment/pod?