docker pull mcr.microsoft.com/windows/nanoserver:1809-amd64 docker create -t --name HelloNanoServerWorld -h NanoServer -i mcr.microsoft.com/windows/nanoserver:1809-amd64 docker pull mcr.microsoft.com/windows/servercore:1809-amd64 docker create -t --name HelloServerCoreWorld -h ServerCore -i mcr.microsoft.com/windows/servercore:1809-amd64 docker save -o c:\images\nanoserver.tar mcr.microsoft.com/windows/nanoserver:1809-amd64 docker load -i c:\temp\nanoserver.tar
For Windows Server 2016: 只支持到Docker for Windows Installer 2.0.0.3 2019-02-15 docker run microsoft/dotnet-samples:dotnetapp-nanoserver docker pull mcr.microsoft.com/nanoserver docker pull mcr.microsoft.com/windows/servercore:1607-amd64 根据系统版本号查找对应镜像https://mcr.microsoft.com/v2/windows/nanoserver/tags/list docker run mcr.microsoft.com/windows/nanoserver:10.0.14393.2248 注意:带*-amd64后缀的镜像无法运行32位程序 docker create -t --name TestNanoServer -h NanoServer -i mcr.microsoft.com/nanoserver docker exec -i -t TestNanoServer cmd docker create -t --name HelloServerCoreWorld -h ServerCore -i mcr.microsoft.com/windows/servercore:1607-amd64 docker exec -i -t HelloServerCoreWorld cmd Copy files to NanoServer: docker ps -a docker cp C:\Users\Administrator\Desktop\aaa.txt cb3a06ab9c9a:/C:\ 检查缺失dll: 下载Procmon,在windows server宿主机运行procman并添加过滤,在docker中运行自己的exe