Back
Can you run a Docker container within a Docker container?
Yeah, it is absolutely possible to run docker container inside a Docker container. It can be done as an individual docker container which can further be realistically considered as a VM where you can again install docker and run more containers. A realistic use case is where a docker container can act as a server and you can create Docker containers inside the container and can orchestrate them. There are many other resources available online for you to achieve this. You can use Kubernetes to provides this functionality. If you want to learn Docker then I would suggest you must take up the following Docker Training Course. Here is an awesome video tutorial on Docker which you also watch to learn more about it.
31k questions
32.8k answers
501 comments
693 users