Answer the question
In order to leave comments, you need to log in
How to make friends between Docker and iptables-persistent or find another solution?
Good afternoon.
I want the proven and beloved lxc virtualization system to work on 1 machine - for it you need to manually register port forwarding in iptables. And there was a docker in the philosophy of which I still can’t figure it out, but I’m learning to cook it - it also adds its own rules based on the configuration of containers, automatically.
I also tried to write bash scripts for restoring rules from a file to the network folder and installed iptables-persistent, after restart, either the rules from the file or docker ones are loaded, but not together
By typing, I noticed if, after starting the system with iptables-persistent, I restart the lxc and docker services, then iptables will have the combination of rules I need. Hence the conclusion they should be initialized after iptables-persistent, but here's the trouble in Google, I still did not find an answer on how to do this, I found only the same plug .
Can you help make friends with utilities?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question