第一次做一个docker build并遇到了这个巨大的错误

时间:2017-02-09 05:55:41

标签: linux docker centos centos7

我正在关注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.

InsecurePlatformWarning

任何帮助都会受到赞赏,因为我是新手!

1 个答案:

答案 0 :(得分:0)

Docker安装不正确。案件结案。