LoginSignup
2
2

More than 5 years have passed since last update.

docker-machineでError running connection boilerplate

Posted at

表題通り。

環境

  • 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)"

以上です。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2