## This block checks all loaded (running or stopped) containers for nas-dependent mounts and adds them (by container name) to the NAS_DEPENDENTS variable.
# NAS_DEPENDENTS=""
# 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