Merge pull request #6631 from nextcloud/enh/6564/add-diun-enable-false

CreateContainer: Also add `diun.enable: false` to all managed containers
This commit is contained in:
Simon L. 2025-07-10 11:21:21 +02:00 committed by GitHub
commit a2002396f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -585,7 +585,8 @@ readonly class DockerActionManager {
} }
// All AIO-managed containers should not be updated externally via watchtower but gracefully by AIO's backup and update feature. // All AIO-managed containers should not be updated externally via watchtower but gracefully by AIO's backup and update feature.
$requestBody['Labels'] = ["com.centurylinklabs.watchtower.enable" => "false", "org.label-schema.vendor" => "Nextcloud"]; // Also DIUN should not send update notifications. See https://crazymax.dev/diun/providers/docker/#docker-labels
$requestBody['Labels'] = ["com.centurylinklabs.watchtower.enable" => "false", "diun.enable" => "false", "org.label-schema.vendor" => "Nextcloud"];
// Containers should have a fixed host name. See https://github.com/nextcloud/all-in-one/discussions/6589 // Containers should have a fixed host name. See https://github.com/nextcloud/all-in-one/discussions/6589
$requestBody['Hostname'] = $container->GetIdentifier(); $requestBody['Hostname'] = $container->GetIdentifier();