Docker Community Forums

Share and learn in the Docker community.

Iptables and docker


(Fahimeh2010) #1

Hello All
I am using Docker version 1.10.1.
I have some containers that have mapped their ports on the host(docker create --name blah -p 1000:3306 and others). I want to block world access to some of this kind of ports.( just want world have access to port 80 and other is mapped to host for our company not the world).
how can block these kind of ports by iptables? I used lots of rules but sounds I can not block.
any help?
Thanks a lot