Skip to content

Commit

Permalink
Fix containers removal print
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammedz93 committed Jul 2, 2023
1 parent 4f11c0e commit 251c47a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/image_config/reset-factory/reset-factory
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ if [ "$FACTORY_TYPE" != "only-config" ]; then
find /home/ /root -type f ! -iname ".*" -delete
fi

echo "Remove all docker containers"
echo "Remove all docker containers except the database"
database_array=($(docker ps -a -q -f "name=database"))
docker rm -f $(docker ps -a -q | egrep -v $(IFS='|'; echo "${database_array[*]}")) > /dev/null

Expand Down

0 comments on commit 251c47a

Please sign in to comment.