Is it possible to create a docker container containing one or more containers?

I want to create a Docker container that contains one or more containers. Is this possible with Docker?

+6
docker
Dec 31 '15 at 12:29
source share
1 answer

Running docker inside docker is definitely possible. The main --privileged=true that you run an external container with additional privileges (starting with --privileged=true ), and then install the docker in this container.

Check out this blog post for more info: Docker-in-Docker .

One possible use case for this is described in this entry . The blog post describes how to create dock containers in a Jenkins dock container.

However, Docker inside Docker is not the recommended approach for solving this type of problem. Instead, it is recommended that you create β€œsibling” containers as described in this post.

+16
Dec 31 '15 at 13:39
source share



All Articles