1
0
mirror of https://github.com/offen/docker-volume-backup.git synced 2025-07-11 14:40:11 +02:00

Query for labeled services as well

This commit is contained in:
Frederik Ring
2024-01-25 19:44:28 +01:00
parent 810c8871ec
commit 4b79a05971
4 changed files with 130 additions and 17 deletions

View File

@ -44,7 +44,7 @@ func main() {
}()
s.must(s.withLabeledCommands(lifecyclePhaseArchive, func() error {
restartContainers, err := s.stopContainers()
restartContainers, err := s.stopContainersAndServices()
// The mechanism for restarting containers is not using hooks as it
// should happen as soon as possible (i.e. before uploading backups or
// similar).