如何禁用docker容器的Internet访问权限

时间:2016-07-08 09:37:11

标签: networking docker sandbox ubuntu-15.04

我试图在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

0 个答案:

没有答案