# Docker rootless: Cannot connect to the Docker daemon

**URL:** <https://forum.gitea.com/t/docker-rootless-cannot-connect-to-the-docker-daemon/10970>\
**Category:** Actions\
**Created:** [March 17, 2025, 1:42am UTC](https://forum.gitea.com/t/docker-rootless-cannot-connect-to-the-docker-daemon/10970 "2025-03-17T01:42:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Youpi](https://avatars.discourse-cdn.com/v4/letter/y/4491bb/32.png) [@Youpi](https://forum.gitea.com/u/Youpi)\
**Post date:** [March 17, 2025, 1:42am UTC](https://forum.gitea.com/t/docker-rootless-cannot-connect-to-the-docker-daemon/10970/1 "2025-03-17T01:42:38Z")

</div>

Hello,

I trying to automate dockerfile build with act runner. But docker/setup-buildx-action@v3 return:  
Cannot connect to the Docker daemon at unix:///var/run/\*\*\*.sock. Is the \*\*\* daemon running?

My host is a docker rootless. I mounted docker sock like this to gitea runner  
volumes:  
- /var/run/user/xxxx/docker.sock:/var/run/docker.sock

In the act runner:  
ls -hal /var/run/docker.sock  
srw-rw—T 1 root 997 0 Mar 16 13:39 /var/run/docker.sock

But in the jobs:  
ls -hal /run  
drwxr-xr-x 2 root root 40 Mar 16 13:59 \*\*\*.sock

Act runner can’t mount docker.sock, this is a directory. The problem is the rootless? Or just he can’t mount the mounted socket?
