Skip to content

Commit a2550fb

Browse files
author
Takashi Matsuo
committed
use user's gid
we can add the user to the docker group for accessing docker socket.
1 parent 3ca0049 commit a2550fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.kokoro/trampoline_v2.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,7 @@ docker_flags=(
269269

270270
# Run the docker script with the user id. Because the docker image gets to
271271
# write in ${PWD} you typically want this to be your user id.
272-
# Also to allow docker in docker, we use docker gid on the host.
273-
"--user" "${user_uid}:${docker_gid}"
272+
"--user" "${user_uid}:${user_gid}"
274273

275274
# Pass down the USER.
276275
"--env" "USER=${user_name}"

0 commit comments

Comments
 (0)