Skip to content
This repository has been archived by the owner on Nov 1, 2018. It is now read-only.

Docker IPTables Problem Running Registry

Mike Conway edited this page Mar 1, 2016 · 1 revision

If you get IPTables related errors running the docker registry, consult this:

I just had the same issue on CentOS 7. I figured out that docker service is configured that way (/lib/systemd/system/docker.service):

After=network.target docker.socket Requires=docker.socket

It means, that docker service starts right after network.target started, and doesn't wait for network.target finished (including firewalld.service). Therefore firewalld.service actually started in parallel or after docker.service rewriting its nat rules. Changing docker.service settings to these solved the problem (/lib/systemd/system/docker.service):

After=network.target docker.socket Requires=network.target docker.socket

from https://github.com/sameersbn/docker-gitlab/issues/499

Clone this wiki locally