4

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 following to the args for the gcloud run deploy call in the cloudbuild.yaml but it complains with error: "Invalid command \"docker run --privileged\": file not found anywhere in PATH

   - --command
    - docker run --privileged
FaultyJuggler
  • 532
  • 1
  • 8
  • 29
  • 2
    Google Cloud Run does not use Docker to run containers. Cloud Run uses gVisor. Cloud Run does not support privileged containers. – John Hanley Jun 05 '21 at 20:33

1 Answers1

6

Google Cloud Run does not use Docker to run containers.
Cloud Run uses gVisor.
Cloud Run does not support privileged containers.

Antonio Ramirez
  • 943
  • 6
  • 15