>docker-compose up -d
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "compose/cli/main.py", line 58, in main
File "compose/cli/main.py", line 109, in perform_command
File "compose/cli/main.py", line 734, in up
File "compose/project.py", line 372, in up
File "compose/project.py", line 413, in initialize
File "compose/network.py", line 162, in initialize
File "compose/network.py", line 47, in ensure
File "compose/network.py", line 82, in inspect
File "site-packages/docker/utils/decorators.py", line 35, in wrapper
File "site-packages/docker/api/network.py", line 49, in inspect_network
File "site-packages/docker/utils/decorators.py", line 47, in inner
File "site-packages/docker/client.py", line 120, in _get
File "site-packages/requests/sessions.py", line 477, in get
File "site-packages/requests/sessions.py", line 465, in request
File "site-packages/requests/sessions.py", line 573, in send
File "site-packages/requests/adapters.py", line 370, in send
File "site-packages/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
File "site-packages/requests/packages/urllib3/connectionpool.py", line 341, in _make_request
File "site-packages/requests/packages/urllib3/connectionpool.py", line 761, in _validate_conn
File "site-packages/requests/packages/urllib3/connection.py", line 253, in connect
File "site-packages/backports/ssl_match_hostname/__init__.py", line 147, in match_hostname
backports.ssl_match_hostname.CertificateError: hostname 'localhost' doesn't match either of '192.168.99.100', '127.0.0.1'
docker-compose returned -1
How to fix:
option 1: export DOCKER_HOST="tcp://localhost:${HOST_DOCKER_DAEMON_PORT}" to
export DOCKER_HOST="tcp://127.0.0.1:${HOST_DOCKER_DAEMON_PORT}"
option 2: try to generate certificate for localhost
The issue:
How to fix:
export DOCKER_HOST="tcp://localhost:${HOST_DOCKER_DAEMON_PORT}"
toexport DOCKER_HOST="tcp://127.0.0.1:${HOST_DOCKER_DAEMON_PORT}"