我试图在docker容器中运行不受信任的代码并禁止访问它。
我已经尝试iptables -I DOCKER -i docker0 -j DROP
iptables: No chain/target/match by that name.
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.04
Release: 15.04
Codename: vivid
docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
virtual_machine latest 5f2b8cea6752 3 months ago 2.795 GB
chug/ubuntu14.04x64 latest 81b68b976893 2.087208 years ago 224.7 MB
找到参考项目here