realpython / dockerizing-django

https://realpython.com/blog/python/django-development-with-docker-compose-and-machine/
1.34k stars 484 forks source link

Problem with SSL #63

Open YintaoBtc opened 5 years ago

YintaoBtc commented 5 years ago

When trying to use: docker-compose up --build -d

I get the following error:

ERROR: SSL error: HTTPSConnectionPool(host='192.168.99.100', port=2376): Max retries exceeded with url: /v1.25/containers/json?all=1&limit=-1&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Dportfoliodocker%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D&trunc_cmd=0&size=0 (Caused by SSLError(SSLError(1, u'[SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:727)'),))

I can fixed it with this: export COMPOSE_TLS_VERSION=TLSv1_2 Here more info: https://github.com/vmware/vic-product/issues/955

I think this problem its for network of virtual box, but i dont know sure. Im running ubuntu 18.04 with virtual box 5.9 and docker 19.03