Docker无法在Windows上构建示例应用程序的映像 [英] Docker fails to build image on Windows for example app
问题描述
https://docs.docker.com/get-started/part2/ #dockerfile
Windows 10 Pro
docker版本18.06.0-ce
Windows 10 Pro docker version 18.06.0-ce
运行docker build -t friendlyhello后,我得到以下错误:
after running docker build -t friendlyhello I get following error:
将构建上下文发送到docker守护程序5.12 KB
步骤1/7:FROM python:2.7- slim
2.7-slim:从库pythonpython
中提取条目列表中找不到未知的匹配清单
Sending build context to the docker daemon 5.12 KB Step 1/7: FROM python :2.7-slim 2.7-slim : Pulling from library\python no matching manifest for unknown in the list of entries
推荐答案
我在Windows 10上也有同样的问题。我可以继续执行以下步骤:
I had this same issue on Windows 10. I could continue following the next steps:
- 右键单击Docker实例
- 进入设置
- 守护进程
- 高级
- 设置实验性:true
- Right click Docker instance
- Go to Settings
- Daemon
- Advanced
- Set the experimental: true
这将重新启动Docker,并让您继续pal。
This will restart Docker and let you continue pal.
这篇关于Docker无法在Windows上构建示例应用程序的映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!