Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to build docker image with 'docker' platform #127

Open
akopachevskyy opened this issue May 13, 2018 · 3 comments
Open

Option to build docker image with 'docker' platform #127

akopachevskyy opened this issue May 13, 2018 · 3 comments
Milestone

Comments

@akopachevskyy
Copy link

Hi, we would like to build docker image on docker agent, in order to do that I was trying to find a way to mount docker.sock and docker command into docker agent on start, but failed to find such properties for Yet Another Docker plugin. Is there are any workaround for that?

P.S. Sure I can use TCP connection from inside Docker Agent and set DOCKER_HOST env variable pointing to host machine IP, but it does not seem to be a robust option for me.

Thanks.

@samrocketman
Copy link
Owner

Docker is on my TODO. Unfortunately there’s not much of a safe way to build docker containers without an exposed socket or privileged container.

@akopachevskyy
Copy link
Author

Sam, yes, I came to conclusion build on remote docker host with -h option is simplest one

@samrocketman
Copy link
Owner

I have done a lot of research in this area and the following is what I came up with for agents. https://github.com/samrocketman/docker-jenkins-jervis#working-with-docker-in-docker

@samrocketman samrocketman added this to the jervis-2.2 milestone Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants