Docker Restricting container network access Block access from containers to the local host running docker daemon

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

iptables -I INPUT -i docker0 -m addrtype --dst-type LOCAL -j DROP
  • Blocks
    • Access to host running docker daemon
  • Does not block
    • Container to container traffic
    • Local LAN
    • Internet
    • Custom docker networks that doesn't use docker0


Got any Docker Question?