From 03b5163b810d1d5cc693015bd558558b90cb6ca4 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 20 Apr 2023 09:28:49 +0200 Subject: [PATCH] scripts/container.sh: run docker with user's UID and GID Signed-off-by: Stefan Weil --- scripts/container.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/container.sh b/scripts/container.sh index 072d2ec1..d5b4ff9b 100755 --- a/scripts/container.sh +++ b/scripts/container.sh @@ -16,7 +16,7 @@ then elif [ "$(command -v docker)" ] then docker build -t "${TAG}" contrib/docker - docker run -it --rm --volume="$(pwd):/gluon" "${TAG}" + docker run -it --rm --user "$(id -u):$(id -g)" --volume="$(pwd):/gluon" "${TAG}" else 1>&2 echo "Please install either podman or docker. Exiting" >/dev/null exit 1