6.5.4 Setting up the Registry Port

The registry server runs on port 5000 by default. If you run alternative services that use the same TCP port, such as the OpenStack Keystone service, you may need to change the configuration to avoid a port conflict. All systems that require access to your registry server must be able to communicate freely on this port, so adjust any firewall rules that may prevent this.

If you are running a firewall, make sure the TCP port that you want the Docker registry to listen on is accessible. If you are running firewalld, add the default rule for the docker-registry service:

# firewall-cmd --zone=public --permanent --add-service=docker-registry 

If you do not run the registry on the default port you can specify the port directly:

# firewall-cmd --zone=public --permanent --add-port=5001/tcp