我在Windows上使用Docker,当我试图用这个命令拉一个PHP图像时
$ docker pull php
我收到了这样的信息:
Using default tag: latest
latest: Pulling from library/php no matching manifest for windows/amd64
in the manifest list entries
我该如何解决这个问题?
我在Windows上使用Docker,当我试图用这个命令拉一个PHP图像时
$ docker pull php
我收到了这样的信息:
Using default tag: latest
latest: Pulling from library/php no matching manifest for windows/amd64
in the manifest list entries
我该如何解决这个问题?
当前回答
你需要先使用Linux平台,然后才能在Windows上运行:
docker pull --platform linux php
docker run -it php
参见博文Docker for Windows Desktop 18.02 with Windows 10 Fall Creators Update。
其他回答
在我的情况下,我必须先更新窗口,然后问题就消失了。
版本:Windows 10
步骤1:右键单击Docker实例并进入设置
步骤2:基本到高级,并设置“实验”:true
步骤3:重启Docker
步骤4:安装dockerfile成功(例如:docker build -t williehao/cheers2019)
我在Azure DevOps管道中得到了这个错误。
Step 1/7 : FROM nginx:alpine
alpine: Pulling from library/nginx
no matching manifest for windows/amd64 10.0.14393 in the manifest list entries
##[error]C:\Program Files\Docker\docker.exe failed with return code: 1
##[section]Finishing: Build an image
问题是我选择了托管的VS2017而不是托管的Ubuntu。在进行如下更改后,构建成功。
希望能有所帮助。
在Windows上,必须编辑文件守护进程。Json或windows-daemon-options。在Windows上,配置文件的默认位置是%programdata%\docker\config\daemon。Json或%programdata%\docker\resources\windows-daemon-options.json
json文件上的可选字段特性,允许用户启用或禁用特定的守护进程特性。示例:{" features":{"buildkit": true}}启用buildkit作为默认的docker映像构建器。
看起来在windows 10 #1100中“docker pull”失败了
如果添加——experimental不起作用,考虑重新安装docker for windows。