Push to registry keeps re-trying then fails (Mac OS Intel 12.7.1)
Description
I searched the bug reports, and have been unable to find an answer for my situation.
If I keep re-pushing, eventually it will succeed, but it may take 5 - 10 tries. I have also been successful pushing very small images.
My internet provider, xFinity says there are no problems with my network, and there are no blocks. I have also confirmed that it works from another machine (Windows) on the same network.
I tried re-setting my Docker to defaults, and even removing and re-installing the app, after removing the ~/.docker folder and re-starting my Mac.
I suspect that this has something to do with my setup, or this particular machine. I have been unsuccessful figuring out exactly what that is. I would appreciate any help you could provide to me.
Reproduce
Steps:
- docker login
- Build and tag an image for my account
- Push the image to either Docker Hub or GitLab registrys
- One or more layers keep re-trying but eventually fails...
e444688d7d8e: Retrying in 6 seconds
Expected behavior
Push should be successful with NO or minimal retries for any layer.
docker version
Client:
Cloud integration: v1.0.35+desktop.5
Version: 24.0.6
API version: 1.43
Go version: go1.20.7
Git commit: ed223bc
Built: Mon Sep 4 12:28:49 2023
OS/Arch: darwin/amd64
Context: desktop-linux
Server: Docker Desktop 4.25.0 (126437)
Engine:
Version: 24.0.6
API version: 1.43 (minimum version 1.12)
Go version: go1.20.7
Git commit: 1a79695
Built: Mon Sep 4 12:32:16 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.22
GitCommit: 8165feabfdfe38c65b599c4993d227328c231fca
runc:
Version: 1.1.8
GitCommit: v1.1.8-0-g82f18fe
docker-init:
Version: 0.19.0
GitCommit: de40ad0
docker info
Client:
Version: 24.0.6
Context: desktop-linux
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.11.2-desktop.5
Path: /Users/rob/.docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.23.0-desktop.1
Path: /Users/rob/.docker/cli-plugins/docker-compose
dev: Docker Dev Environments (Docker Inc.)
Version: v0.1.0
Path: /Users/rob/.docker/cli-plugins/docker-dev
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.20
Path: /Users/rob/.docker/cli-plugins/docker-extension
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v0.1.0-beta.9
Path: /Users/rob/.docker/cli-plugins/docker-init
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
Version: 0.6.0
Path: /Users/rob/.docker/cli-plugins/docker-sbom
scan: Docker Scan (Docker Inc.)
Version: v0.26.0
Path: /Users/rob/.docker/cli-plugins/docker-scan
scout: Docker Scout (Docker Inc.)
Version: v1.0.9
Path: /Users/rob/.docker/cli-plugins/docker-scout
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 1
Server Version: 24.0.6
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 8165feabfdfe38c65b599c4993d227328c231fca
runc version: v1.1.8-0-g82f18fe
init version: de40ad0
Security Options:
seccomp
Profile: unconfined
cgroupns
Kernel Version: 6.4.16-linuxkit
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 12
Total Memory: 7.663GiB
Name: linuxkit-4e7b935652e5
ID: 5b294987-5770-484d-93ea-bef022569ac8
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: http.docker.internal:3128
HTTPS Proxy: http.docker.internal:3128
No Proxy: hubproxy.docker.internal
Experimental: false
Insecure Registries:
hubproxy.docker.internal:5555
127.0.0.0/8
Live Restore Enabled: false
Diagnostics ID
BE05663A-1267-4F75-A4A5-FDD22B382FA4/20231113142355
Additional Info
% docker build -t myid/g-hello:caas-11-13 .
[+] Building 9.3s (9/9) FINISHED docker:desktop-linux
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 175B 0.0s
=> [internal] load metadata for docker.io/library/eclipse-temurin:11-alpine 1.6s
=> [auth] library/eclipse-temurin:pull token for registry-1.docker.io 0.0s
=> [1/3] FROM docker.io/library/eclipse-temurin:11-alpine@sha256:0f42a9544bb88d43ce43e6668cf 6.8s
=> => resolve docker.io/library/eclipse-temurin:11-alpine@sha256:0f42a9544bb88d43ce43e6668cf 0.0s
=> => sha256:d7b582f04be5a8e22a60e8fbaf2e99f641a8f180761c63177d79cac2206fe54 4.64kB / 4.64kB 0.0s
=> => sha256:96526aa774ef0126ad0fe9e9a95764c5fc37f409ab9e97021e7b4775d82bf6f 3.40MB / 3.40MB 0.5s
=> => sha256:b02a3a37ba0a441c23edb967d901e4af5b508796b983fbb71e14ad89db9a999 9.28MB / 9.28MB 1.0s
=> => sha256:a12e67e82faf020e769d46cccfc7f1620ccb86e04b4576b070512194641 140.48MB / 140.48MB 3.6s
=> => sha256:0f42a9544bb88d43ce43e6668cf52423951099e14761d35779d0175414f0dd06 320B / 320B 0.0s
=> => sha256:fd3753e16935cf54faebd41b5e0167c7385d47fe8f5c983c051fe04e0748c89 1.37kB / 1.37kB 0.0s
=> => extracting sha256:96526aa774ef0126ad0fe9e9a95764c5fc37f409ab9e97021e7b4775d82bf6fa 0.4s
=> => sha256:43caa4ccd4f85f364bbf72014cc960dc6fb6703350eceaee77976cf6313c8a55 176B / 176B 0.7s
=> => sha256:8800858de447fac23faff681df1122b67d784efb0ee850d3d9551bcb5e9b19f8 733B / 733B 0.9s
=> => extracting sha256:b02a3a37ba0a441c23edb967d901e4af5b508796b983fbb71e14ad89db9a9999 1.2s
=> => extracting sha256:a12e67e82faf020e769d46cccfc7f1620ccb86e04b4576b070512194641eb854 3.1s
=> => extracting sha256:43caa4ccd4f85f364bbf72014cc960dc6fb6703350eceaee77976cf6313c8a55 0.0s
=> => extracting sha256:8800858de447fac23faff681df1122b67d784efb0ee850d3d9551bcb5e9b19f8 0.0s
=> [internal] load build context 1.1s
=> => transferring context: 64.00MB 1.1s
=> [2/3] WORKDIR /app 0.3s
=> [3/3] COPY build/libs/g-autos-0.0.1-SNAPSHOT.jar app.jar 0.1s
=> exporting to image 0.4s
=> => exporting layers 0.4s
=> => writing image sha256:6a6a595b5c2edca031adab060290e1aec8be510f97d66b9096d0be78c277f484 0.0s
=> => naming to docker.io/rlwingjr/g-hello:caas-11-13 0.0s
What's Next?
View a summary of image vulnerabilities and recommendations → docker scout quickview
% docker push my-id/g-hello:caas-11-13
The push refers to repository [docker.io/rlwingjr/g-hello]
e444688d7d8e: Pushing 63.99MB/63.99MB
5ddaa633690f: Pushed
ada5e7c75473: Mounted from library/eclipse-temurin
49257391b63b: Mounted from library/eclipse-temurin
14be709aaa1e: Mounted from library/eclipse-temurin
7d57db06a38a: Mounted from library/eclipse-temurin
cc2447e1835a: Mounted from library/eclipse-temurin
write tcp 192.168.65.3:61578->192.168.65.1:3128: write: connection reset by peer
Same issue here (Mac OS Intel 14.5). Interestingly, I also have xfinity and have been able to work around the issue by switching to a different network (e.g. a cellular hotspot), so it seems to be some interaction between docker for mac and xfinity's internet service specifically.
I have the same experience. Docker for Mac, Xfinity causing my layers to fail to push.