Merge pull request #2664 from nextcloud/enh/noid/speed-up-initial-login

try to speed up initial login by not removing the bridge network from…
This commit is contained in:
Simon L 2023-06-06 10:32:25 +02:00 committed by GitHub
commit b1eb97dc4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -57,6 +57,11 @@ while true; do
# Remove dangling images
sudo -u www-data docker image prune --force
# Remove mastercontainer from default bridge network
if sudo -u www-data docker inspect nextcloud-aio-mastercontainer --format "{{.NetworkSettings.Networks}}" | grep -q "bridge"; then
sudo -u www-data docker network disconnect bridge nextcloud-aio-mastercontainer
fi
# Wait 60s so that the whole loop will not be executed again
sleep 60
done