Init nas_down.sh (not tested)
This commit is contained in:
parent
6ddea392f5
commit
a920e2d00a
9
server/scripts/nas_down.sh
Normal file
9
server/scripts/nas_down.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
for CONTAINER_ID in $(docker ps -aq) # get list of all loaded containers (running and stopped)
|
||||
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 "$CONTAINER_NAME mounts:"
|
||||
echo $CONTAINER_MOUNTS
|
||||
done
|
Loading…
Reference in New Issue
Block a user