I have a server with Docker and I want to run Jenkins inside a container, until here it’s all fine.
But I want to build and deploy images/containers to the same server where the Jenkins container is running.
I know the Jenkins container does have no way to do this because it’s inside a container, but I would start the Jenkins container with a volume:
-v /var/run/docker.sock:/var/run/docker.sock
Does this work or is it not possible? Because I do not want a Docker inside a Docker.
The other option would be to just install Jenkins on the server, not inside a container.