Skip to content

Commit

Permalink
Add check that the container is stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
yenienserrano committed Jan 23, 2025
1 parent ab73b3d commit f92f0ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dev-tools/test-packages/test-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ FILE_OWNER="wazuh-dashboard"
# Remove container and image
clean() {
docker stop $CONTAINER_NAME
# This is done because in the construction of packages arm sometimes fails because it is not finished destroying the container and when trying to delete the image fails because it is in use.
while docker ps --format "{{.Names}}" | grep $CONTAINER_NAME; do
sleep 2
done
docker rmi $CONTAINER_NAME
}

Expand Down

0 comments on commit f92f0ce

Please sign in to comment.