Make a new container with a combination of two separate containers

125 views Asked by At

I want a container which have both, docker application and jenkins application installed.
I have tried building a new container from a Dockerfile - ` FROM :docker FROM :jenkins/jenkins

but it only seems to have jenkins but no docker . `

1

There are 1 answers

0
Dejan On

That's not good practice if you want really to do that. And if answer is still yes then you should pick docker image that suits both needs like ubuntu (of course search for smallest possible version) or something.

If answer is no then create two separate containers.