Docker Community Forums

Share and learn in the Docker community.

Dial tcp xx.xx.xxxx:80: connect: connection refused when I do docker push


(Jhdev) #1

I get dial tcp xx.xx.xxxx:80: connect: connection refused when I do docker push.

port 80 is blocked on our network, and we use 443 port. It works some times. Seems like docker tries to use port 80 … how can I use port 443?

it has worked twice the steps below today, but 99% of the time I get connection refused. Not sure what is going on.

i removed the username/url/ip details… but this explains what I did from command line and Jenkins… get same odd error.

I login:

docker login -u usernamewithpermissions artifactory-url

I build from docker file. This pulls the base image from our private registry.

docker build -t artifactory-url/docker-repo-local/rhel7:92-dev .

I push and I get this:

docker push artifactory-url/docker-repo-local/rhel7:92-dev
The push refers to repository [artifactory-url/docker-repo-local/rhel7]
f0d7a9e2eed9: Pushing [==================================================>] 88.19MB/88.19MB
27cdbe94f004: Pushing [==================================================>] 630.9kB/630.9kB
a229134bb5ae: Pushing [==================================================>] 4.096kB
20a8d484e3e9: Retrying in 1 second
539fd0f2ec17: Pushing [==================================================>] 13.03MB/13.03MB
1c9a4aeaa7ad: Retrying in 5 seconds
895f5d3d3bb5: Retrying in 5 seconds
d70a2a36b8e6: Retrying in 5 seconds
39df18f6ad47: Waiting
8a325f8a1c47: Waiting
20a1b4e9f75b: Waiting
dial tcp xx.xx.xxxx:80: connect: connection refused

version

Client:
Version: 18.06.1-ce
API version: 1.38
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:23:03 2018
OS/Arch: linux/amd64
Experimental: false

Server:
Engine:
Version: 18.06.1-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:25:29 2018
OS/Arch: linux/amd64
Experimental: false