1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

docker run でタイムアウト出力

1
Posted at

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          __/
        \    \        __/
          \____\______/
1
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?