【问题标题】:doing a docker build for the first time and ran into this massive error第一次进行 docker build 并遇到了这个巨大的错误
【发布时间】:2017-06-27 00:32:32
【问题描述】:

我关注this django-docker tutorial

我在 Centos 7 中运行了命令:

docker build -t <insertyournamehere>/django-docker .

然后遇到这个巨大的错误信息:

Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Mwo_hq/pycparser/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-giTR8X-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-Mwo_hq/pycparser/
/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.

不安全平台警告

任何帮助将不胜感激,因为我是新手!

【问题讨论】:

  • docker build 使用Dockerfile,在这种情况下,Dockerfile 在运行docker build 时位于当前目录中。从字面上看,那里可能有任何 shell 序列或其他命令。您至少必须发布 Dockerfile,即便如此,问题也可能过于宽泛。
  • github.com/morninj/django-docker 我一直在使用本教程,除了涉及 apt-get 的部分,我会改为使用 yum。
  • 不必将Dockerfile 中的apt-get 更改为yum,因为最上面一行FROM ubuntu:14.04 告诉docker 下载并从标准的ubuntu 14.04 容器开始。所有后续命令都在该 ubuntu 容器中运行,它不关心主机上是否安装了其他一些 linux 操作系统(如 Fedora 或 Red Hat)。
  • docs.docker.com/engine/installation/linux/centos 我将看看是否需要采取这些步骤来删除旧 docker。
  • 你知道我应该为 放什么吗?

标签: linux docker centos centos7


【解决方案1】:

Docker 安装不正确。结案。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-10-03
    • 1970-01-01
    • 1970-01-01
    • 2014-11-14
    • 1970-01-01
    • 1970-01-01
    • 2021-02-22
    • 1970-01-01
    相关资源
    最近更新 更多