> > There must be a canonical way to achieve this, I guess the problem is that > the Agent is running in a container. >
Yeah, as Ashwanth said, you could mount docker.sock inside, but that's the same as DinD (Docker in Docker) which you said you didn't want to do. So, you'll need a non-dockerised agent, I suppose. On Fri, Jul 29, 2016 at 8:53 AM, 'Ashwanth Kumar' via go-cd < [email protected]> wrote: > You can try mounting your host docker.sock inside the agent so you the > agent's docker command (actually the client) will talk to the docker daemon > on the host machine. > > On Fri, Jul 29, 2016 at 6:18 PM, Hugh Acland <[email protected]> wrote: > >> Hi >> >> I have an agent running happily in a Docker container. It is provisioned >> as a Node/NPM resource. >> >> First we do 'npn install' which pulls down into the agent all the node >> dependencies. >> >> Then I need to build a Docker image, from the Dockerfile present in the >> root of the repo material checked out into the Agent. >> >> The Agent does not have docker installed, and I have read differing >> reports on the sanity of running Docker-in-Docker so I would rather not do >> that. >> >> How can I build a Docker image from a Dockerfile in the Agent? Will I >> need to have a non-dockerised Agent running to use the host Docker engine >> and then mount the entire repo to the host volume? >> >> There must be a canonical way to achieve this, I guess the problem is >> that the Agent is running in a container. >> >> Thanks for your advice >> Hugh >> >> -- >> You received this message because you are subscribed to the Google Groups >> "go-cd" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > > Ashwanth Kumar / ashwanthkumar.in > > -- > You received this message because you are subscribed to the Google Groups > "go-cd" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
