#I ll probably rebuild the agents with
1 messages ยท Page 1 of 1 (latest)
+ cloak version
cloak devel (5a1e8b7ee) linux/arm64
+ dagger do hello --log-format=plain
[90m6:45AM[0m [31mERROR[0m [95msystem | [0m[31mfailed to run docker: exit status 1[0m [1moutput=Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Docker Buildx (Docker Inc., v0.9.1-docker)
Server:
ERROR: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info": dial unix /var/run/docker.sock: connect: permission denied
errors pretty printing info
[0m[0m
[90m6:45AM[0m [31mFATAL[0m [95msystem | [0m[31munable to create client: exit status 1[0m[0m
hmmm something borked in general. Will try to kill the buildkitd I started manually
I ran my agent container manually as root and that fixed my permission problems ๐
docker run -u 0 -it --rm --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock jer
emyatdockerhub/cloak-jenkins-agent:2 /bin/bash
But I want to run my jobs as the jenkins user.
Not sure why it "just worked" before...but new versions of everything since last time I did this
huh. If I make the docker socket 777 that works too ๐
I built my agents with a Dockerfile before and now with Dagger 0.2.
Also, if I run my agent container on my Macbook with Docker Desktop, the /var/run/docker.sock of the agent container is 777. If I run the agent container in the docker:dind container, then /var/run/docker.sock is 660.
scripts โค docker run -it --rm --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock jeremyatdockerhub/cloak-jenkins-agent:2 /bin/bash
jenkins@d2c787f3a72c:~$ ls -al /var/run/docker.sock
srwxrwxrwx 1 root root 0 Aug 22 04:00 /var/run/docker.sock
jenkins@d2c787f3a72c:~$ exit
exit
scripts โค docker exec -it jenkins-docker /bin/sh git:cloak*
/ # docker run -it --rm --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock jeremyat
dockerhub/cloak-jenkins-agent:2 /bin/bash
jenkins@6b4be471c7fa:~$ ls -al /var/run/docker.sock
srw-rw---- 1 root root 0 Sep 11 06:55 /var/run/docker.sock