我一直得到这个错误和下载失败:
PS C:\Users\Admin> docker run -ti microsoft/windowsservercore powershell Unable to find image 'microsoft/windowsservercore:latest' locally latest: Pulling from microsoft/windowsservercore 3889bb8d808b: Downloading [==================================================>] 4.07 GB/4.07 GB 423d66441981: Downloading [==================================================>] 1.203 GB/1.203 GB C:\Program Files\Docker\docker.exe: read tcp 192.168.0.11:60315->72.21.81.200:443: wsarecv: An existing connection was forcibly closed by the remote host.. See 'C:\Program Files\Docker\docker.exe run --help'.
我认为这是因为我的连接速度慢(1Mbps)。 hello-world:nanoserver样本下载并正常工作。
我不介意下载这个作为一个BITS工作,但我需要知道两件事情:
事实certificate,这是不能做到的。 Docker镜像不能作为单个文件下载,就像VHDX或其他类似的软件包一样。
这样做的方式是使用docker pull , docker save和docker load 。
docker pull hello-world:nanoserver docker images docker save 85cb186f58f4 -o .\Image.bin copy '\\SERVER1\C$\Users\Admin\Image.bin' . docker load -i .\Image.bin docker image tag 85cb186f58f4 hello-world:nanoserver
如果在快速networking上下载( pull )并将图像移动到较慢的位置,请使用上面的copy命令replace您希望将Image.bin文件从一个位置移到另一个位置的任何方法。