Decker 启动或操作docker相关命令报错

修改或添加/etc/docker/daemon.json以后,启动或操作docker相关命令报错:

Administrator@AlanChen MINGW64 /d/Program Files/Docker Toolbox
$ ./start.sh
Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host "192.168.99.100:2376": dial tcp 192.168.99.100:2376: connectex: No connection could be made because the target machine actively refused it.
You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'.
Be advised that this will trigger a Docker daemon restart which might stop running containers.

Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host "192.168.99.100:2376": dial tcp 192.168.99.100:2376: connectex: No connection could be made because the target machine actively refused it.
You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'.
Be advised that this will trigger a Docker daemon restart which might stop running containers.

根据提示执行:docker-machine regenerate-certs default操作无效。
由于只能删除daemon.json配置文件,重新启动。删除daemon.json操作命令如下:
sudo rm -f /etc/docker/daemon.json
Decker 启动或操作docker相关命令报错_第1张图片
重启docker-machine restart default;

你可能感兴趣的:(Docker)