Skip to main content

How to use Windows Docker Containers

Deploy an Application using Windows Container on Docker (Fix for Hot Reload on Windows Machine [Angular])

To use docker just go to - and download docker for windows.

Then as usual, install them and run it normally. As we know, usually deploying with docker creates a Linux container as it is an open source application. So, first things first. 

Change the Container mode to Windows, as below.


Right Click on the Docker icon in taskbar--> Switch to Windows Container



Then it will switch the containers to Windows Containers.

Now we have the Windows Containers up and running instead of Linux containers. For the developers who use windows, this will give full functioning docker to use as the Linux version in Linux OS.

What are the basic changes that need to be done to the Dockerfile in our project?

As shown above, the Dockerfile needs to be changed to windows commands to set the paths etc. And remember to get the base file for windows. “Volumes and Working paths need to be given as shown above, in the manner of full path in docker file.”

What are the basic changes need to be done in the Docker-Compose.yml file?

There is no big difference other than the Volume paths need to be added as the full path to map as shown earlier in Dockerfile.

As a result of using Docker Windows Containers, all the docker options mainly the problem all docker users have which is the “Hot Reload problem” will be solved in Windows Machines too.

I was working on an angular project running on a Docker container on a Windows machine and it does not give me the hot reload feature. But it was working on the Linux containers on Linux OS. That is the reason why I looked into this matter and finally ended up writing this. So here is how to use Windows Containers on Windows OS. Hope it would help you.

28 / May / 2019 docker Sithum Meegahapola



© 2021 Creative Software. All Rights Reserved | Privacy | Terms of Use