remove hardcoded "--rm" hides config string (#3245)

This commit is contained in:
iav
2021-11-10 22:05:37 +02:00
committed by GitHub
parent c528354c42
commit 4844a8b4f6

View File

@@ -43,7 +43,7 @@ DOCKER_FLAGS+=(--security-opt=apparmor:unconfined)
# remove resulting container after exit to minimize clutter
# bad side effect - named volumes are considered not attached to anything and are removed on "docker volume prune"
#DOCKER_FLAGS+=(--rm)
DOCKER_FLAGS+=(--rm)
# pass through loop devices
for d in /dev/loop*; do
@@ -106,10 +106,10 @@ If you prefer to use profile, for example, `userpatches/config-my.conf`, try:
./compile.sh my compile_uboot
EOF
docker run "${DOCKER_FLAGS[@]}" -it --rm --entrypoint /usr/bin/env armbian:$VERSION "$@" /bin/bash
docker run "${DOCKER_FLAGS[@]}" -it --entrypoint /usr/bin/env armbian:$VERSION "$@" /bin/bash
else
display_alert "Running the container" "" "info"
docker run "${DOCKER_FLAGS[@]}" -it --rm armbian:$VERSION "$@"
docker run "${DOCKER_FLAGS[@]}" -it armbian:$VERSION "$@"
fi
# Docker error treatment