I’m wanting to run docker in docker for my jenkins agents, but whenever I try and run a docker command in the container I get Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/create?fromImage=ubuntu&tag=focal": dial unix /var/run/docker.sock: connect: permission denied. I’ve gotten to work before by creating a docker group in the container with the same id as the one on the host. I was wondering if there was a more portable solution for binding the docker socket
no, the tls method doesn’t appear to be what I’m looking for. I’ve also tried sysbox but I keep getting the error services.jenkins Additional property runtime is not allowed when I do
I am not sure how this is related with access to the docker engine…
Have you checked the compose file 3 reference? You should make it a habit, as things that can not be found there usualy doesn’t exist for this schema version and therefor not available for swarm deployments.
I want to be able to deploy both Jenkins and the Jenkins Agents to a swarm and have them be able to kick off containerized builds from each. I need all the agents to be able to run docker in order to spin up more containers.