I tried running Docker on Windows Server 2019

A Windows container that is in a terrible situation so far. Kubernetes has said it will stop supporting Docker, so at least I think Docker's eyes will be closed in the future, but it's also a good idea to check the current status of dying Windows Server + Docker before the coming (or coming) Containerd. I thought it was not bad for the purpose of recovering the investment of my new mini PC.

Docker installation

Well, it's not worth keeping the procedure down, so if you write it briefly,

    1. Get the evaluation disk for Windows Server 2019 and install it on VMware Workstation. https://www.microsoft.com/ja-jp/evalcenter/evaluate-windows-server-2019?filetype=ISO

I made a virtual machine with 2 CPUs, 8GB of memory, and 60GB of HDD, but with 60GB of HDD, it fails because there is not enough space to Docker save the image of the microsoft/windows container. Really? .. .. Well, 60GB is enough.

    1. Install Docker on Windows Server. Something seems to be old, and it doesn't work as written here and there, but the following is official. https://docs.microsoft.com/ja-jp/virtualization/windowscontainers/quick-start/set-up-environment?tabs=Windows-Server

After installing Docker, the Docker engine of a vendor called Mirantis Container Runtime, which is unknown at the time of writing the article (well, I just acquired Docker EE from Docker) will run. At this point, it is hopeless whether it can be used in the Japanese commercial environment.

> docker version
Client: Mirantis Container Runtime
 Version:           19.03.14
 API version:       1.40
 Go version:        go1.13.15
 Git commit:        e820475
 Built:             12/17/2020 19:30:16
 OS/Arch:           windows/amd64
 Experimental:      false

Server: Mirantis Container Runtime
 Engine:
  Version:          19.03.14
  API version:      1.40 (minimum version 1.24)
  Go version:       go1.13.15
  Git commit:       57e3a05525
  Built:            12/17/2020 19:29:00
  OS/Arch:          windows/amd64
  Experimental:     false

Try using Docker on Windows Server

    1. Try running the IIS container. First, to find out which tag image to deploy, you'll know the quirks of recent Windows Server version nomenclature. https://hub.docker.com/_/microsoft-windows-servercore-iis

The latest Windows, which is also called Windows Server 2009 (10 smaller than 2019), seems to mean Windows released in September 2020. The point is that this doesn't hurt well in 2016 or 2019, and the next release will be 2103. This growls. If you add Windows Server 2022 in the next LTSC release, it will be older than 2109, right? You can even see where Ichamon is attached. So maybe the next Windows Server LTSC isn't called 2022. Like Windows Server X.

However, so-called long-term support (LTSC) is specified only in 2019 and 2016, so other than that, it is an unlucky child who was able to feel at that time.

In addition, the version name and build number of Windows Server 2019 (LTSC) that seems to follow the above rules are as follows according to "System"> "Version Information". Version: 1809 OS build: 17763.1697

So, after all, it is not clear which tag should be pulled and it consumes about 30 minutes, but in the end I settled on the conclusion that "windows server core-ltsc 2019" written at the top of the page is a safeguard. It was.

> docker pull mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019

So start this. It's a long image name that I haven't experienced yet, and it shows the weight of Microsoft's history.

> docker run -d -p 80:80 mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019

The explanation of Docker Hub says that it can not be accessed with `` `http: // localhost``` due to a WinNAT problem, but it seems that it has been solved in Windows Server 2019, there is no problem when trying to access it with a Web browser The IIS screen is displayed. image.png

    1. Try updating the container file I wondered if docker cp works for Windows containers, but this is not a problem.
PS> type index.html
<!DOCTYPE html>
Hello World!
PS> $container = (docker ps -q)
PS> docker cp .\index.html ${container}:"C:\inetpub\wwwroot\"

Reload your web browser. image.png

docker logsThe command does not display the iis log. This is where I want the official image side to do something about it.

in conclusion

Well, after all, the best thing about Windows Server is that it can be managed by connecting it with a remote desktop, but there is no sign that it will be solved or it will be possible. There is no doubt that it is more meaningful for Microsoft to delve into Windows Virtual Desktop. Their direction is correct. I want the game streaming market to lead the next generation of IT.

What exactly do people in the Kubernetes neighborhood want to do with Windows node integration? ..

Recommended Posts

I tried running Docker on Windows Server 2019
I tried running Ansible on a Docker container
I tried using Docker Desktop for Windows on Windows 10 Home
I tried running a Docker container on AWS IoT Greengrass 2.0
I tried running WordPress with docker preview on M1 Mac.
Microservices 101-I tried putting Docker on Ubuntu-
I tried running Autoware
M.S. docker on Windows
I tried installing docker on an EC2 instance
I tried running Java on a Mac terminal
Install Docker on Windows 10 PRO
[First environment construction] I tried to create a Rails 6 + MySQL 8.0 + Docker environment on Windows 10.
Install Docker on Ubuntu Server 20.04
Run openvpn on Docker (windows)
Try Docker on Windows 10 Home
I tried using Log4j2 on a Java EE server
I tried the Docker tutorial!
I tried BIND with Docker
The key to running Docker on Raspberry Pi 4 (Ubuntu server 20.04)
I tried to create React.js × TypeScript × Material-UI on docker environment
Use Docker Compose on Windows 10 Home
Try Docker on Windows Home (September 2020)
I tried installing CentOS 8 on ESXi 6.7
Using Docker on Windows10 Home WSL2
left4dead2 I made a Docker image for the server and tried running it on GCE # 3 (I had a hard time building the server)
I tried to build the environment of PlantUML Server with Docker
I tried deploying a Docker container on Lambda with Serverless Framework
Stupid mistake I made when running nginx server with Docker Compose
Windows Docker: Disk pressure on WSL files
Run NordVPN on Docker (Windows) Ubuntu container
I tried using Scalar DL with Docker
I installed Docker on my Raspberry Pi 3
Introducing Docker Desktop for Windows on WSL2
I tried to build AdoptOpenjdk 11 on CentOS 7
What is Docker? I tried to summarize
Building Java Web Applications on Windows Server 2016
Set up Metabase service on Windows Server 2012
I tried running the Angular sample in Auth0 Quick Start with Docker
I tried migrating the portfolio created on Vagrant to the Docker development environment
Try running MPLS-VPN with FR Routing on Docker
Connect with VS Code from a Windows client to Docker on another server
I tried using Docker for the first time
I tried using Junit on Mac VScode Maven
Liberty on Docker
I tried putting Java on my Mac easily
I tried to verify AdoptOpenJDK 11 (11.0.2) with Docker image
Radiko recording server on Raspberry Pi 4 (Docker unused)
Try running OSPF with FR Routing on Docker
I built a Java EE environment on AWS and tried running a web application
I installed Docker on EC2 and started it
I tried OmniSci on CentOS 7 + GeForce RTX 2080 Ti.
I tried Spring.
I tried touching Docker for the first time
I tried tomcat
I tried youtubeDataApi.
I tried refactoring ①
Operate Docker Desktop for Windows on Linux (WSL)
I tried FizzBuzz.
I tried to implement a server using Netty
I tried JHipster 5.1
Redmine on Docker