Why am I getting an RTNETLINK Operation Not Permitted when using Pipework with Docker containers?

后端 未结 2 437
北恋
北恋 2021-02-01 03:25

I\'m running CoreOS stable 494.5.0 using Vagrant/VirtualBox and am running the vanilla ruby:2.1.5 Docker image. I\'m trying to use Pipework to connect the Docker container to a

2条回答
  •  悲哀的现实
    2021-02-01 04:09

    In your docker-compose.yml you can add this:

    container_or_service_name:
      cap_add:
        - NET_ADMIN
    

    Credit where credit is due: this answer is based on a comment by @petrkotek under the accepted answer, but I ended up using it myself, so I wanted to make it more visible.

提交回复
热议问题