Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

Specify "privileged" container mode in dockerfile?

Writer Matthew Martinez

I am a little new to Docker technology, however, I would like to deploy a couple of BGP BIRD containers throughout my infrastructure. I would like to automate container creation with Dockerfile builds, however, I can not run BIRD in docker without giving the container "privileged" mode. There doesn't appear to be a Dockerfile version for getting "privileged" mode. Are there workarounds or perhaps I am missing the point?

2 Answers

You can't give privileged mode in Dockerfile. You can only run by --privileged when start docker by command line. There is one other way, that you can try start you docker container via Docker API

And set request param for auto run with privileged mode.

As I know, normal case you need to run docker in privileged mode is you wanna run docker in docker. What BIRD container is ?

8

it's a parameter you pass when you run the container --privileged

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy