diff --git a/docs/docker/start.sh b/docs/docker/start.sh index 027c17b68..ce3076574 100755 --- a/docs/docker/start.sh +++ b/docs/docker/start.sh @@ -3,7 +3,10 @@ if [ -n "$USE_PODMAN" ]; then else DOCKER_EXEC=$(which docker) fi -CVW_MOUNT=${CVW_MOUNT:$(pwd)/../../} +if [ -n "$USE_PODMAN" ]; then + CVW_MOUNT=$(pwd)/../../ +fi +echo ${CVW_MOUNT} USERNAME="cad" UBUNTU_WALLY_HASH=$(${DOCKER_EXEC} images --quiet wallysoc/ubuntu_wally) @@ -28,7 +31,7 @@ elif [ -z $TOOLCHAINS_HASH ]; then exit 1 else echo "Get ${TOOLCHAINS_HASH} for toolchains_wally" - ${DOCKER_EXEC} run -it --rm -v ${CVW_MOUNT}:/home/${USERNAME}/cvw wallysoc/toolchains_wally + ${DOCKER_EXEC} run --user root -it --rm -v ${CVW_MOUNT}:/home/${USERNAME}/cvw wallysoc/toolchains_wally fi echo "Successfully reach the end"