I have used following manual to install swarm on my machines without using docker-machine: https://docs.docker.com/swarm/install-manual/ Now I want to use docker-compose to create cluster of containerised apps. But can not get docker-compose to reach swarm.
EG: Following command give back result:
docker -H :4000 ps
but, docker-compose don't:
docker-compose -H my.IP.address:4000 ps
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "compose/cli/main.py", line 61, in main
File "compose/cli/main.py", line 113, in perform_command
File "contextlib.py", line 35, in __exit__
File "compose/cli/errors.py", line 56, in handle_connection_errors
TypeError: log_timeout_error() takes exactly 1 argument (0 given)
docker-compose returned -1
docker-compose -H :4000 ps
do not reach swarm either
Does anybody have idea what am I doing wrong?
There are some hints to set env variables for:
DOCKER_HOST DOCKER_CERT_PATH DOCKER_TLS_VERIFY
But how to get DOCKER_CERT_PATH
The issue was not related to docker. I was running virtual machines behind proxy and variable no_proxy was not set.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.