Skip to content

Commit

Permalink
fix #8165 -- compute servers: when starting containers that need sudo…
Browse files Browse the repository at this point in the history
…, pass " --security-opt no-new-privileges=false " to the Docker command.
  • Loading branch information
williamstein committed Jan 29, 2025
1 parent c7aab4d commit db3d90b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/packages/server/compute/cloud/startup-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ chown 2001:2001 /ephemeral
docker run \
-d \
--name=filesystem \
--security-opt no-new-privileges=false \
--privileged \
--memory "$TOTAL_RAM"g --memory-swap "$TOTAL_RAM"g \
--mount type=bind,source=/data,target=/data,bind-propagation=rshared \
Expand Down Expand Up @@ -486,6 +487,7 @@ if [ $? -ne 0 ]; then
docker run -d ${gpu ? GPU_FLAGS : ""} \
--name=compute \
--network host \
--security-opt no-new-privileges=false \
--privileged \
--memory "$TOTAL_RAM"g --memory-swap "$TOTAL_RAM"g \
--mount type=bind,source=/data,target=/data,bind-propagation=rshared \
Expand Down

0 comments on commit db3d90b

Please sign in to comment.