boot2dockerでSSLエラー
コマンド何実行して以下のようなエラーがでる
An error occurred trying to connect: Get https://192.168.59.103:2376/v1.19/version: x509: certificate is valid for 127.0.0.1, 10.0.2.15, not 192.168.59.103
- TLS無効にすればいいよねというのは、すぐに分かっても、どうやればいいのかがわからない
- ここを参考にprofileを編集するとうまくいった
- 技術的には、こちらの方が納得感がある
- TLSを無効にする設定を入れて動作確認
[11:45] % boot2docker stop [~]
[11:45] % boot2docker start [~]
Waiting for VM and Docker daemon to start...
............o
Started.
To connect the Docker client to the Docker daemon, please set:
export DOCKER_HOST=tcp://192.168.59.103:2375
unset DOCKER_CERT_PATH
unset DOCKER_TLS_VERIFY
[11:46] % docker version [~]
Client version: 1.7.0
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 0baf609
OS/Arch (client): darwin/amd64
Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
[11:46] % docker images [~]
Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
[11:46] % unset DOCKER_CERT_PATH [~]
[11:47] % unset DOCKER_TLS_VERIFY [~]
[11:47] % export DOCKER_HOST=tcp://192.168.59.103:2375 [~]
[11:47] % docker images [~]
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
centos latest 7322fbe74aa5 3 weeks ago 172.2 MB
centos centos5 9069226e092e 11 weeks ago 284.1 MB
hello-world latest 91c95931e552 12 weeks ago 910 B
gpmidi/centos-5.3 latest c538b96552fd 12 months ago 524.3 MB