Skip to content

Commit

Permalink
fix: logging env
Browse files Browse the repository at this point in the history
  • Loading branch information
yourzinc committed Jan 16, 2024
1 parent 5f8451c commit 61d3a18
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion scripts/stop_docker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
#!/bin/bash
# stop_docker.sh
echo "Stopping container: ${CONTAINER_NAME}"
docker stop ${CONTAINER_NAME}
docker rm ${CONTAINER_NAME}
if [ $? -eq 0 ]; then
echo "Container ${CONTAINER_NAME} stopped successfully."
else
echo "Failed to stop container ${CONTAINER_NAME}."
fi

echo "Removing container: ${CONTAINER_NAME}"
docker rm ${CONTAINER_NAME}
if [ $? -eq 0 ]; then
echo "Container ${CONTAINER_NAME} removed successfully."
else
echo "Failed to remove container ${CONTAINER_NAME}."
fi

0 comments on commit 61d3a18

Please sign in to comment.