简体   繁体   中英

Can't run or pull windows docker images

From here I can't pull or run any windows docker image (from windows or Linux)

When trying from Windows cmd:

Pull:

docker pull mcr.microsoft.com/windows
Using default tag: latest
Error response from daemon: manifest for mcr.microsoft.com/windows:latest not found: manifest unknown: manifest tagged by "latest" is not found

Run:

docker run mcr.microsoft.com/windows:1903
Unable to find image 'mcr.microsoft.com/windows:1903' locally
1903: Pulling from windows
docker: no matching manifest for linux/amd64 in the manifest list entries.
See 'docker run --help'.

Any tips?

docker: no matching manifest for linux/amd64 in the manifest list entries. means this image can just works on windows platform.

Although you works on windows, default docker desktop may use linux container , you should switch to windows container before pull this image using next at desktop tray with mouse right click the docker icon:

在此处输入图像描述

After switch, you could pull that image successfully:

C:\Windows\System32>docker pull mcr.microsoft.com/windows:1903
1903: Pulling from windows
af1a530dff54: Downloading [==========>                                      ]    738MB/3.657GB                        
123ee413bb26: Downloading [===================>                               ]  994.8MB/2.51GB 

BTW, looks latest label not set for this image, so you will have to use detail version, eg 19.03.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM