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

重啓docker-machine restart default;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章