Initial start-scripts commit
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
CONTAINER_NAME="nim-llama-3.1-8b"
|
||||
|
||||
if docker ps -a --format '{{.Names}}' | grep -Fxq "$CONTAINER_NAME"; then
|
||||
echo "Arresto container: $CONTAINER_NAME"
|
||||
docker stop "$CONTAINER_NAME" >/dev/null
|
||||
echo "Rimozione container: $CONTAINER_NAME"
|
||||
docker rm "$CONTAINER_NAME" >/dev/null
|
||||
echo "Container arrestato e rimosso: $CONTAINER_NAME"
|
||||
else
|
||||
echo "Nessun container da arrestare: $CONTAINER_NAME"
|
||||
fi
|
||||
Reference in New Issue
Block a user