Good evening,
i just try to stop some docker containers defined in an array. But only the first one is stopped but four times.
CONTAINERTOSTOP=(webgrabplus Nextcloud ddclient MariaDB-10.6)
for constopping in "${CONTAINERTOSTOP[@]}"; do
docker container stop $CONTAINERTOSTOP done
My script only stops the webgrabplus container but for four times so i think the loop works.
Where is my fault here ?
docker container stop "$constopping"; done