Using docker-machine on osx.
When I call docker push, it is very likely that the push will fail with an i/o timeout at a random step. e.g.
$ docker push synesso/apache-php-tippecanoe
The push refers to a repository [docker.io/synesso/apache-php-tippecanoe] (len: 1)
Sending image list
Pushing repository docker.io/synesso/apache-php-tippecanoe (1 tags)
25a034bcce1e: Image already pushed, skipping
c637ef06654b: Image already pushed, skipping
7d9a8a2f8a2b: Image already pushed, skipping
db3325e6599f: Pushing
Failed to upload metadata: Put https://cdn-registry-1.docker.io/v1/images/db3325e6599f813803076e6c8bfab3b16f225979a181c5c853e99 cf423e662e6/json: dial tcp 52.200.174.126:443: i/o timeout
$ docker push synesso/apache-php-tippecanoe
The push refers to a repository [docker.io/synesso/apache-php-tippecanoe] (len: 1)
496d3de01ca2: Image already exists
397811415998: Image already exists
fbee40003e7b: Image already exists
fa3640e00a60: Image already exists
637bfc8d527d: Image already exists
cd3707d3953e: Image already exists
631d263aaa3c: Image already exists
8ce229e2bccc: Image already exists
2f586870b09b: Image already exists
164f622d7b3b: Image push failed
Head https://registry-1.docker.io/v2/synesso/apache-php-tippecanoe/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4: dial tcp 52.200.174.126:443: i/o timeout
$ docker push synesso/apache-php-tippecanoe
The push refers to a repository [docker.io/synesso/apache-php-tippecanoe] (len: 1)
496d3de01ca2: Image already exists
397811415998: Image already exists
fbee40003e7b: Image already exists
fa3640e00a60: Image already exists
637bfc8d527d: Image already exists
cd3707d3953e: Image already exists
631d263aaa3c: Image already exists
8ce229e2bccc: Image push failed
Head https://registry-1.docker.io/v2/synesso/apache-php-tippecanoe/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4: dial tcp 54.236.102.40:443: i/o timeout
$ docker push synesso/apache-php-tippecanoe
The push refers to a repository [docker.io/synesso/apache-php-tippecanoe] (len: 1)
496d3de01ca2: Image already exists
397811415998: Image already exists
fbee40003e7b: Image already exists
fa3640e00a60: Image already exists
637bfc8d527d: Image already exists
cd3707d3953e: Image already exists
631d263aaa3c: Image already exists
8ce229e2bccc: Image already exists
2f586870b09b: Image push failed
Head https://registry-1.docker.io/v2/synesso/apache-php-tippecanoe/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4: dial tcp 54.236.102.40:443: i/o timeout
If I do this enough times, it will probably work. But it’s very frustrating. In fact, I’ve been running a while true loop waiting for it to succeed.
This happens not just with this image, but any image. It started occurring 1 to 2 months ago.
How can I improve this?
(x-posted to superuser)