mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
remove hardcoded "--rm" hides config string (#3245)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user