Questions tagged [docker-privileged]

8 questions
13
votes
4 answers

Docker 50% performance hit on cpu intensive code

I'm pretty new at using docker or any containers, so please be gentle if I've missed something obvious that everyone else be already knows. I've searched everywhere I can think of, but haven't seen this issue addressed. I'm trying to evaluate the…
OldGeeksGuide
  • 2,888
  • 13
  • 23
7
votes
2 answers

How to shutdown the host (ubuntu) inside a docker container

I would like to shutdown the machine (host) when the docker container finishes a job. My host OS is Ubuntu. The container can run as --privileged=true. That is not a problem. I managed to do this with the command (found in a stackoverflow…
4
votes
1 answer

How to run docker container as privileged within Cloud Run

I have a docker container that needs to run with --privileged to establish a VPN connection once it boots up I am migrating it into Cloud Run using Cloud Build I tried --container-privileged but that seems to only work for GCE, I also added the…
1
vote
0 answers

spark3.0 on kubernetes with privileged containers

How to start a container with "privileged=true", before spark2.4, we can add a securityContext.withPrivileged(true) in SparkPod.scala to set it, but spark3.0 does not seem to respect this anymore. Any ideas? Thank you
0
votes
1 answer

Install RPMs on the host from inside a kubernetes pod

Is there a way to run a privileged pod that I can use to install RPMs and packages on the host where the pod is running? Thanks! If I just run privileged pod, exec into it and would try to run the command: rpm -i I would install that…
0
votes
0 answers

Is there a way to avoid login when using --privileged to run a docker container

I'm using a docker of image centos:7.9.2009, is there a way to avoid login when using --privileged=true to run a container? Here is the command: docker run -d --privileged=true -v /sys/fs/cgroup:/sys/fs/cgroup --name centos_base centos:7.9.2009…
0
votes
0 answers

How to access all physical host network interfaces from container?

Requirement: If I do ifconfig, then I want to see the physical interface cards, which I need to access to be used inside a container. Why? - coz i need to create a socket from container to interface NOTE: This interface has to be accessed at OSI…
0
votes
0 answers

Docker engine api create container with privileged mode

I'm using docker engine api to build image and then create and run container. What I need is run container with --privileged flag. But I couldn't see anything in docker engine api reference…