1
0
mirror of https://github.com/offen/docker-volume-backup.git synced 2025-06-30 22:33:38 +02:00

Query for labeled services as well

This commit is contained in:
Frederik Ring
2024-01-25 19:44:28 +01:00
parent 97e5aa42cc
commit 270ca65efa
4 changed files with 130 additions and 17 deletions

View File

@ -47,7 +47,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).