From 9eb658ff6f72d935b052bb6042d5a8da125381c2 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 11 Mar 2020 11:41:16 +1300 Subject: [PATCH] fix docker user group --- cross/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cross/build.sh b/cross/build.sh index f702efa..1227b2e 100755 --- a/cross/build.sh +++ b/cross/build.sh @@ -11,7 +11,7 @@ if [ -z "$CARGO_HOME"]; then fi -DOCKER_CMD="docker run --rm -v=`pwd`:/work -v$CARGO_HOME/registry:/root/.cargo/registry -v$SCCACHE_DIR:/root/.cache --workdir=/work --env PKG_CONFIG_ALLOW_CROSS=1" +DOCKER_CMD="docker run --rm -v=`pwd`:/work -v$CARGO_HOME/registry:/root/.cargo/registry -v$SCCACHE_DIR:/root/.cache --workdir=/work --user=:`id -g` --env PKG_CONFIG_ALLOW_CROSS=1" DOCKER_IMG=ryankurte/rust-embedded