我在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
我该如何解决这个问题?
当前回答
我在Windows 10中通过运行管理Powershell解决了这个问题:
cd "C:\Program Files\Docker\Docker"
然后:
./DockerCli.exe -SwitchDaemon
其他回答
另一种可能的方法是:
在系统托盘中,右键单击docker图标,然后单击切换到Linux容器。
(Docker for Windows, Community Edition, version 18.03.1)
我有同样的问题运行Windows IIS映像使用docker for Windows。读了上面Mohammad Trabelsi的回复,我意识到要解决我的问题,我需要把我的容器(在docker上)切换到Windows容器。
这样做:
右击Docker实例 选择“切换到Windows容器…”
在我的情况下,我必须先更新窗口,然后问题就消失了。
对我来说,这是因为C:\ProgramData\Docker\config\daemon.json被拒绝访问 我把它修好了,现在可以用了。 您可以尝试切换到Linux容器,然后再切换回来。如果切换没有问题,那么它与访问权限一起工作。
我在Windows 10中通过运行管理Powershell解决了这个问题:
cd "C:\Program Files\Docker\Docker"
然后:
./DockerCli.exe -SwitchDaemon