Docker: “no matching manifest for windows/amd64 in

2019-03-09 16:52发布

I use Docker on Windows, and when I tried to pull a PHP image with this command

$ docker pull php

I got this message:

Using default tag: latest
latest: Pulling from library/php no matching manifest for windows/amd64 
        in the manifest list entries

How can I fix this problem?

标签: docker
9条回答
我想做一个坏孩纸
2楼-- · 2019-03-09 16:54

Consider the applications that you are pulling - are they Windows based? If not, you need to run a Linux container.

Without using the experimental mode, you can only use Docker in one style of container vs the other. If you activate the experimental mode as mentioned above, you can use Windows and Linux containers as required by the applications you are pulling in the compose file.

Key note: Experimental - still in development by Docker.

查看更多
在下西门庆
3楼-- · 2019-03-09 16:59

You need to pull with the Linux platform first, then you can run on Windows:

docker pull --platform linux php
docker run -it php

See blog post Docker for Windows Desktop 18.02 with Windows 10 Fall Creators Update.

查看更多
地球回转人心会变
4楼-- · 2019-03-09 17:02

Another possible way to do this:

In system tray, right click on docker icon, then click on Switch to Linux containers.

(Docker for Windows, Community Edition, version 18.03.1)

查看更多
Anthone
5楼-- · 2019-03-09 17:03

Thanks for @benscabbia, it works for me in win10

enter image description here

查看更多
小情绪 Triste *
6楼-- · 2019-03-09 17:04

I had this same issue on Windows 10. I bypassed it by running the Docker daemon in experimental mode:

  1. Right click Docker instance
  2. Go to Settings
  3. Daemon
  4. Advanced
  5. Set the "experimental": true
  6. Restart Docker
查看更多
够拽才男人
7楼-- · 2019-03-09 17:09

This looks like https://github.com/docker/for-win/issues/1100

If adding --experimental does not work, consider re-installing docker for windows.

查看更多
登录 后发表回答