docker-archive / docker-registry

This is **DEPRECATED**! Please go to https://github.com/docker/distribution
Apache License 2.0
2.88k stars 879 forks source link

Can't use FQDN of host when pushing images to remote registry (Unsecure) #1115

Open Annihil8ted opened 6 years ago

Annihil8ted commented 6 years ago

Hello All,

I'm using Ubuntu 14.04 LTS.

Client: Version: 18.02.0-ce API version: 1.36 Go version: go1.9.3 Git commit: fc4de44 Built: Wed Feb 7 21:16:47 2018 OS/Arch: linux/amd64 Experimental: false Orchestrator: swarm

Server: Engine: Version: 18.02.0-ce API version: 1.36 (minimum version 1.12) Go version: go1.9.3 Git commit: fc4de44 Built: Wed Feb 7 21:15:21 2018 OS/Arch: linux/amd64 Experimental: false

When running the following on host machine: docker run -d -p 5000:5000 --restart=always --name registry registry:2

From a remote machine, I cannot push using the host FQDN. I must tag and push using the ip.

Annihil8ted commented 6 years ago

If I push using FQDN, it continually attempts to retry until a 503 is hit. I've done the installation once over already and have produced the same errors. I also tried via enabling self-signed HTTPS and I get the same issue.

dmp42 commented 6 years ago

@Annihil8ted to be able to provide insight in this, we need your configuration (redacted), the exact command line you have been using, and both the registry logs and docker daemon logs (from where you are trying to pull).