Haven't come across any article that says how to setup Docker in Docker for Windows (native, not WSL). Trying to build a Windows Server Core based image but from within a Windows Server Core Container. Is this possible?
How to install Docker Desktop inside a Windows Server Core based container
1.5k Views Asked by Ashik At
3
So, I took some time to test this out and it turns out that it actually works: Windows container running inside a Windows container
The catch here is that the docker engine on the container needs to be mapped to the docker engine from the underlying container. Here is the docker file I used:
Here are the commands I ran:
This will open a container interactively. From there, run: