P
P
Pavel Bezrukov2015-07-02 00:28:25
iptables
Pavel Bezrukov, 2015-07-02 00:28:25

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

1 answer(s)
M
mureevms, 2015-07-02
@mureevms

Apparently the docker rules clear the system rules. Isn't it possible to just add docker rules to the iptables system script and run it after docker starts?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question