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
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.
Docker containers do not have full privileges by default. Try adding this to the docker run
command:
--cap-add=NET_ADMIN
List of capabilities