With new network feature in docker 1.10 it is possible to create isolated overlay networks - which works very well. Containers in 2 separate networks can not talk to each other. Is it possible, however, to deny container in overlay network to reach public internet? Eg to make ping 8.8.8.8 fail, while having docker host connected to internet.
相关问题
- Docker task in Azure devops won't accept "$(pw
- IPAddress.[Try]Parse parses 192.168 to 192.0.0.168
- Unable to run mariadb when mount volume
- Unspecified error (0x80004005) while running a Doc
- What would prevent code running in a Docker contai
If you add the
--internal
flag when creating a network with thedocker network create
command, then that network will not have outbound network access:I assume -- but have not tested -- that this works for overlay networks as well as for host-local networks.