Docker无法在Windows上构建示例应用程序的映像 [英] Docker fails to build image on Windows for example app

查看:86
本文介绍了Docker无法在Windows上构建示例应用程序的映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆