$ docker images
Get http://127.0.0.1:2375/v1.19/images/json: dial tcp 127.0.0.1:2375: ConnectEx tcp: No connection could be made because the target machine actively refused it.. Are you trying to connect to a TLS-enabled daemon without TLS?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
在
boot2docker start
之后需要设置下面三个环境变量:DOCKER_HOST
,DOCKER_CERT_PATH
,DOCKER_TLS_VERIFY
。如果在 windows 下 boot2docker 启动成功之后会有下面的提示:
将上面提示的那三个环境变量复制执行一遍就可以,例如在 windows 的 cmd 中执行: