


For the best experience, run these commands in an elevated command prompt window (but don't use the Windows PowerShell ISE-it doesn't work for interactive sessions with containers, as the containers appear to hang). Microsoft/nanoserver latest 105d76d0f40e 4 days ago 652 MBįor this simple example, a ‘Hello World’ container image will be created and deployed. Here's an example of the output showing the Nano Server image. Running the command docker images returns a list of installed images. To use the command line to switch between containers, run & $Env:ProgramFiles\Docker\Docker\DockerCli.exe -SwitchDaemon.Īfter the image is finished downloading-read the EULA while you wait-verify its existence on your system by querying your local docker image repository. To switch to Windows containers in Docker, right-click the Docker icon, and select Switch to Windows containers. If you see an error message that says no matching manifest for linux/amd64 in the manifest list entries, make sure Docker isn't configured to run Linux containers. To resolve this issue, try restarting the Docker service. If Docker fails to start when trying to pull the image, the Docker daemon may be unreachable.

Open a command prompt window (such as the built-in command prompt, PowerShell, or Windows Terminal), and then run the following command to download and install the base image: docker pull /windows/nanoserver:ltsc2022 This procedures pulls (downloads and installs) the lightweight Nano Server base image. Microsoft offers several starter images, called base images, to choose from (for more details, see Container base images). Install a container base imageĪll containers are created from container images. Then you create and run a container image, which is based upon the base image. To run a container, you first install a base image, which provides a foundational layer of operating system services to your container. This topic describes how to run your first Windows container, after setting up your environment as described in Get started: Prep Windows for containers. Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016
