Skip to content

Commit b1cf5e6

Browse files
authored
Merge pull request #4122 from The-OpenROAD-Project-staging/podman-docker-shell-mods
Addresses podman issues found at customer site
2 parents 44a0461 + f2dc15e commit b1cf5e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

flow/util/docker_shell

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ if $USE_USER; then
8282
user_args="--entrypoint=entrypoint.sh --user=root"
8383
user_env="-e CUSTOM_USER=$(id --user --name) -e CUSTOM_USER_ID=$(id --user) -e CUSTOM_GROUP_ID=$(id --group)"
8484
elif [[ $container_engine == "podman" ]]; then
85-
user_args="--privileged --userns=keep-id"
85+
user_args="--privileged --userns=keep-id --user $(id -u):$(id -g)"
8686
user_env=
8787
else
8888
user_args="-u $(id -u ${USER}):$(id -g ${USER})"
@@ -117,7 +117,7 @@ DOCKER_CMD=(
117117
-e "YOSYS_EXE=$YOSYS_EXE"
118118
-e "OPENROAD_EXE=$OPENROAD_EXE"
119119
-e "KLAYOUT_CMD=$KLAYOUT_CMD"
120-
-v "$WORKSPACE:/work"
120+
-v "$WORKSPACE:/work:Z"
121121
--network host
122122
"${PORT_ARGS[@]}"
123123
"$IMAGE"

0 commit comments

Comments
 (0)