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

后端 未结 2 431
北恋
北恋 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.

    0 讨论(0)
  • 2021-02-01 04:26

    Docker containers do not have full privileges by default. Try adding this to the docker run command:

    --cap-add=NET_ADMIN
    

    List of capabilities

    0 讨论(0)
提交回复
热议问题