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

make iptables rules management fail gracefully #797

Closed
hellt opened this issue Feb 23, 2022 · 5 comments · Fixed by #798
Closed

make iptables rules management fail gracefully #797

hellt opened this issue Feb 23, 2022 · 5 comments · Fixed by #798
Labels
bug Something isn't working

Comments

@hellt
Copy link
Member

hellt commented Feb 23, 2022

Quite often users install docker via a package manager. Sometimes this results in docker to be installed without docker-managed iptables rules in place.

We need not to stop deployment/destroy when iptables errors occur, instead we should emit a warning error and keep moving

@hellt hellt added the bug Something isn't working label Feb 23, 2022
@LimeHat
Copy link
Member

LimeHat commented Feb 23, 2022

Docs say that both chains are used by docker?
https://docs.docker.com/network/iptables/

Docker installs two custom iptables chains named DOCKER-USER and DOCKER, and it ensures that incoming packets are always checked by these two chains first.

All of Docker’s iptables rules are added to the DOCKER chain. Do not manipulate this chain manually. If you need to add rules which load before Docker’s rules, add them to the DOCKER-USER chain. These rules are applied before any rules Docker creates automatically.

Agree on the last point.

@hellt
Copy link
Member Author

hellt commented Feb 23, 2022 via email

@LimeHat
Copy link
Member

LimeHat commented Feb 23, 2022

Maybe docker/for-linux#810

@hellt hellt changed the title make iptables rules management work on RHEL systems make iptables rules management fail gracefully Feb 23, 2022
@LimeHat
Copy link
Member

LimeHat commented Feb 23, 2022

Ok so docker-user first became available in 17.06

@hellt
Copy link
Member Author

hellt commented Feb 23, 2022

great. It is a miracle clab even worked with docker-1.13.1
the warn error has been added in 465a83b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants