表題通り。
環境
- docker: 1.9.1
- docker-machine: 0.5.0
- virtualbox: 4.3.28
- MacOSX Yosemite: 10.10.3
エラー内容
Error running connection boilerplate: Error checking and/or regenerating the certs: There was an error validating certificates for host "192.168.56.101:2376": dial tcp 192.168.56.101:2376: i/o timeout
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.
対応
下記を参考に。
https://github.com/docker/toolbox/issues/275
$ docker-machine rm dev # => 削除
$ docker-machine create --driver virtualbox --virtualbox-hostonly-cidr 192.168.60.1/24 dev # => optionを追加してcreate
$ docker-machine env dev
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.60.101:2376"
export DOCKER_CERT_PATH="/Users/xxxxxx/.docker/machine/machines/dev"
export DOCKER_MACHINE_NAME="dev"
# Run this command to configure your shell:
# eval "$(docker-machine env dev)"
以上です。