Docker ignores iptable rules when using “-p :

前端 未结 5 939
广开言路
广开言路 2021-01-31 22:10

Just realized a few days ago that Docker seems to bypass my iptable rules. I am not incredible experienced with Docker nor iptables. Tried a lot of different things the last day

5条回答
  •  故里飘歌
    2021-01-31 22:28

    I'm not an expert on iptables but I know that if you run the container with -p 127.0.0.1:123:123 then the port won't be exposed on all interfaces, just on the loopback.

提交回复
热议问题