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

  docker-compose错误_第1张图片

 

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 
    from compose.cli.main import main
  File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 17, in 
    import docker
  File "/usr/lib/python2.7/site-packages/docker/__init__.py", line 2, in 
    from .api import APIClient
  File "/usr/lib/python2.7/site-packages/docker/api/__init__.py", line 2, in 
    from .client import APIClient
  File "/usr/lib/python2.7/site-packages/docker/api/client.py", line 5, in 
    import requests
  File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 43, in 
    import urllib3
  File "/usr/lib/python2.7/site-packages/urllib3/__init__.py", line 10, in 
    from .connectionpool import (
  File "/usr/lib/python2.7/site-packages/urllib3/connectionpool.py", line 31, in 
    from .connection import (
  File "/usr/lib/python2.7/site-packages/urllib3/connection.py", line 45, in 
    from .util.ssl_ import (
  File "/usr/lib/python2.7/site-packages/urllib3/util/__init__.py", line 4, in 
    from .request import make_headers
  File "/usr/lib/python2.7/site-packages/urllib3/util/request.py", line 5, in 
    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

  

 

转载于:https://www.cnblogs.com/liubiaos/p/9444485.html

你可能感兴趣的:(docker-compose错误)