• docker-compose错误


    1、错误信息:

    ERROR: for gamehall  Get https://hub.tondeen.com/v1/_ping: http: server gave HTTP response to HTTPS client
    ERROR: Get https://hub.tondeen.com/v1/_ping: http: server gave HTTP response to HTTPS client
    

      

    vim /etc/docker/daemon.json
    

      

    "insecure-registries":["hub.tondeen.com"]
    

      

    2、错误信息(python2和python3兼容性问题):

    /usr/lib/python2.7/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.22) or chardet (2.2.1) doesn't match a supported version!
    

      

    pip uninstall urllib3
    
    pip uninstall  chardet
    
    pip install requests
    

      

     3、查看网络连接情况:

    docker run shoneworn/ping ping www.baidu.com

    4、错误信息:

    [root@VM_0_10_centos tuige]# docker-compose -v 
    Traceback (most recent call last):
      File "/usr/bin/docker-compose", line 7, in <module>
        from compose.cli.main import main
      File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 17, in <module>
        import docker
      File "/usr/lib/python2.7/site-packages/docker/__init__.py", line 2, in <module>
        from .api import APIClient
      File "/usr/lib/python2.7/site-packages/docker/api/__init__.py", line 2, in <module>
        from .client import APIClient
      File "/usr/lib/python2.7/site-packages/docker/api/client.py", line 5, in <module>
        import requests
      File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 43, in <module>
        import urllib3
      File "/usr/lib/python2.7/site-packages/urllib3/__init__.py", line 10, in <module>
        from .connectionpool import (
      File "/usr/lib/python2.7/site-packages/urllib3/connectionpool.py", line 31, in <module>
        from .connection import (
      File "/usr/lib/python2.7/site-packages/urllib3/connection.py", line 45, in <module>
        from .util.ssl_ import (
      File "/usr/lib/python2.7/site-packages/urllib3/util/__init__.py", line 4, in <module>
        from .request import make_headers
      File "/usr/lib/python2.7/site-packages/urllib3/util/request.py", line 5, in <module>
        from ..exceptions import UnrewindableBodyError
    ImportError: cannot import name UnrewindableBodyError
    

      解决方法:

    pip install --ignore-installed requests
    

      

    5、登陆超时

    Login did not succeed, error: Error response from daemon: Get http://hub.17kxkx.com/v2/: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
    

      

    解决办法:

    yum update
    

      

     6丶下载失败

        ERROR: Command errored out with exit status 1:
         command: /usr/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zItSn5/pycparser/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zItSn5/pycparser/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
    '"'"', '"'"'
    '"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
             cwd: /tmp/pip-install-zItSn5/pycparser/
        Complete output (17 lines):
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "/tmp/pip-install-zItSn5/pycparser/setup.py", line 65, in <module>
            cmdclass={'install': install, 'sdist': sdist},
          File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
            _setup_distribution = dist = klass(attrs)
          File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 269, in __init__
            _Distribution.__init__(self,attrs)
          File "/usr/lib64/python2.7/distutils/dist.py", line 287, in __init__
            self.finalize_options()
          File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 302, in finalize_options
            ep.load()(self, ep.name, value)
          File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2341, in load
            return self.resolve()
          File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2351, in resolve
            raise ImportError(str(exc))
        ImportError: 'module' object has no attribute 'check_specifier'
        ----------------------------------------
    ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
    

      解决方法:升级

    sudo pip install --upgrade pip
    

      

    sudo pip install --upgrade setuptools
    

      

  • 相关阅读:
    ov5640调试过程
    关于OnPaint函数的工作原理(很详细,很实用) [转载]
    机器视觉网络资源
    (转)signaltap II数据用于仿真
    DataSocket简介
    datasocket使用网络传输图像
    共享变量/全局变量/datasocket
    [转载] 任意频率分频原理
    [转]影响FPGA设计中时钟因素的探讨
    生产者和消费者
  • 原文地址:https://www.cnblogs.com/liubiaos/p/9444485.html
Copyright © 2020-2023  润新知