报错内容

can't initialize iptables table `filter': Permission denied (you must be root)

原因

iptables必须在特权模式下运行(privileged)

解决

在docker-compose中增加 privileged: true

version: '3.3'
services:
    test:
      # image: yunbakserver:v0.2
      image: test:v1.0
      container_name: test1
      privileged: true
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐