Cannot connect to the Docker daemon at unix://var/run/docker.sock

Hello everyone!

I’m using podman instead of Docker, with a Gitlab runner docker executor.

I created a image from a Dockerfile in local (not a pull from the docker hub). I want to verify that I can use this image in my pipeline. So I wrote a little gitlab-ci.yml file like :

job:
image: centos8-test:latest
script:
- echo “Test”

It doesn’t work. There is a error message like “Cannot connect to the Docker daemon at unix://var/run/docker.sock”.

Is it because I’m using podman instead of Docker ?