docker runを実行するとタイムアウト表示が出力された。
$ docker run docker/whalesay cowsay boo
Unable to find image 'docker/whalesay:latest' locally
Pulling repository docker.io/docker/whalesay
Network timed out while trying to connect to https://index.docker.io/v1/repositories/docker/whalesay/images. You may want to check your internet connection or if you are behind a proxy.
この時は遅いネットワークに接続していたからそのせいかと思ったけど、念のため確認。
Network timed out while trying to connect to https://index.docker.io - Stack Overflow にあるように、再起動と設定リフレッシュを実行。
$ docker-machine restart default
(default) Stopping VM...
(default) Starting VM...
Restarted machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
$ eval $(docker-machine env default)
これでpullできるようになった!
$ docker run docker/whalesay cowsay boo
Unable to find image 'docker/whalesay:latest' locally
latest: Pulling from docker/whalesay
2880a3395ede: Pull complete
515565c29c94: Pull complete
・・・
_____
< boo >
-----
\
\
\
## .
## ## ## ==
## ## ## ## ===
/""""""""""""""""___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\______/