Joey Hafner 2022-08-18 10:36:57 -07:00
parent 8676a34dba
commit 95549891d5

View File

@ -5,5 +5,5 @@ do
CONTAINER_NAME=$(docker ps -aq --filter "id=$CONTAINER_ID" --format '{{.Names}}') # get the container's name
CONTAINER_MOUNTS=$(docker inspect --format '{{range .Mounts}}{{println .Source}}{{end}}' $CONTAINER_ID) # print the container's volume mounts
echo "======== CHECKING $CONTAINER_NAME ========"
echo $CONTAINER_MOUNTS | grep /mnt/nas
echo "$CONTAINER_MOUNTS" | grep /mnt/nas
done