Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker role causes Docker's first start to fail with 'Couldn't load target DOCKER' #43

Closed
lazzurs opened this issue Aug 9, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@lazzurs
Copy link

commented Aug 9, 2017

I have installed both this role and the docker role on the same server. After running both when trying to use Docker after this has run I get the following.

Creating network "digitalhub_default" with the default driver
ERROR: Failed to program FILTER chain: COMMAND_FAILED: '/usr/sbin/iptables -w2 -I FORWARD -o br-919bc7916019 -j DOCKER' failed: iptables v1.4.21: Couldn't load target `DOCKER':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.

Restarting the Docker service puts the rules back into place and Docker starts working again.

I think from this module either having a flag to ignore the Docker rules or a post change command to allow the Docker service to be restarted would be useful.

@geerlingguy

This comment has been minimized.

Copy link
Owner

commented Apr 26, 2018

I hit the same issue, and have to restart Docker to get it working... not sure what's the best approach here, but I know that I see Docker having weird issues with iptables in many other scenarios too. It might be better to fix things in the Docker role instead.

@geerlingguy geerlingguy changed the title Not compatible with the Docker role Docker role causes Docker's first start to fail with 'Couldn't load target DOCKER' Apr 26, 2018

@geerlingguy

This comment has been minimized.

Copy link
Owner

commented May 2, 2018

@geerlingguy

This comment has been minimized.

Copy link
Owner

commented May 2, 2018

This is fixed by the geerlingguy.docker role version 2.2.0, and to make sure it works in your playbook, please make sure to have the geerlingguy.firewall role run before the geerlingguy.docker role.

@geerlingguy geerlingguy closed this May 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.