問題
docker-machine envすると、
There was an error validating certificates for host ~
と叱られる
Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host "192.168.99.100:2376": x509: certificate is valid for 192.168.99.101, not 192.168.99.100 You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'. Be advised that this will trigger a Docker daemon restart which will stop running containers.
原因
言われてる通り
There was an error validating certificates for host "192.168.99.100:2376": x509: certificate is valid for 192.168.99.101, not 192.168.99.100
解決
言われてる通り
You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'.
% docker-machine regenerate-certs oppai
雑感
- エラー出力はちゃんと読もう