You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I'm continually geting the "connection refused" error shown.
At the same time, the local registry container is up:
~/local/testbuildxpush/: docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d0e25bdc10a0 registry:2 "/entrypoint.sh /etc…" 3 minutes ago Up 3 minutes registry
c91c35ed0445 moby/buildkit:buildx-stable-1 "buildkitd" 2 hours ago Up 2 hours buildx_buildkit_mybuilder0
and seems to be working:
~/local/testbuildxpush/: docker tag moby/buildkit:buildx-stable-1 localhost:5000/buildkit:1
~/local/testbuildxpush/: docker push localhost:5000/buildkit:1
The push refers to repository [localhost:5000/buildkit]
d838ca4e7718: Pushed
f5bc6b547867: Pushed
7da13a3469bd: Pushed
d4fc045c9e3a: Pushed
1: digest: sha256:c3cb08891c15763d426ba017fa7ce957537a779837f5bf2f7b50de3796e13918 size: 1158
I've tried to start the registry container in several ways in order to avoid this problem. In the above case, I started it with simply
docker run -d --name registry --network=host registry:2
but I've also tried it several other ways, choosing different network options and specifying the ports, and I keep getting the same error.
Does this error make sense to anyone? At the moment, I don't see what I'm doing wrong here.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a trivially simple Dockerfile (of only "FROM ubuntu:24.04") and I'm trying to build with buildx and push to a local registry as here:
However, I'm continually geting the "connection refused" error shown.
At the same time, the local registry container is up:
and seems to be working:
I've tried to start the registry container in several ways in order to avoid this problem. In the above case, I started it with simply
but I've also tried it several other ways, choosing different network options and specifying the ports, and I keep getting the same error.
Does this error make sense to anyone? At the moment, I don't see what I'm doing wrong here.
Beta Was this translation helpful? Give feedback.
All reactions