Closed twang2218 closed 8 years ago
I got the same error for docker-compose pull
, which used to work in docker-compose 1.7
.
I found almost nothing is working for docker-compose 1.8.0 in docker swarm. I tried up
, build
,push
, pull
. All came to the same error:
backports.ssl_match_hostname.CertificateError: hostname '192.168.99.104' doesn't match 'localhost'
If I switch to non-swarm environment by eval $(docker-machine env --unset)
or eval $(docker-machine env default)
, docker-compose
will work again.
Just figure out, it's pip
problem. I installed by curl
previously, and this time I use pip
, and forget about the virtualenv
. I just uninstalled the pip version, and reinstalled by curl
, now everything is fine.
@twang2218 Did the same on Ubuntu 15.10 and it worked. Uninstall via pip
and reinstalled via curl
and now works as intended.
I have a swarm and try to use
docker-compose
tobuild
andpush
the images to registry, andpull
to the swarm. My current environment is swarm:Then, what every command I run with
docker-compose
, I received the following error:I'm using the latest version
1.12
of docker, and docker-compose1.8.0
:Here is the
docker info
: