If you have an environment ready for executing Windows Server Containers, you can start from here to learn how to create containers from existing images or create new images.
In this section, we will use an existing Docker image to create a new container. Docker Hub is a public repository for storing Docker images. Docker images can be made up of Linux base OS or windowsservercore
OS. Since OS kernels are completely different, containers made up of Linux cannot be installed on Windows and vice versa. At this point we cannot differentiate by looking at the name if the base OS is made up of Linux/Windows.If you try to install or pull a Linux image on Windows, it might fail with an error as follows:
Microsoft has also published a few docker images starting with microsoft/
that are made up of both Linux and windowsservercore
base. Follow these steps to search and create a new container using a windowsservercore
-based image called...