Skip to content

Docker swarm error #423

@zibellon

Description

@zibellon

Describe the bug
OffenBackup - search labels only on One node. For example Traefik (in swarm mode) search container (deploy) labels on all nodes

To Reproduce
Steps to reproduce the behavior:

  1. I have docker swarm cluster: 1 master (MASTER_1) and 2 workers (WORKER_1, WORKER_2).
  2. Run 3 different Postgres docker on all nodes (For three different projects).
  3. Want to backup all of them.
  4. For all Postgres docker add volume: - pg-backup-data:/tmp-backup
  5. For all Postgres docker add two labels (In service section, not in deploy section):
  • "docker-volume-backup.archive-pre=/bin/sh -c 'pg_dump -U postgres postgres | gzip > /tmp-backup/pg_dump.sql.gz'"
  • "docker-volume-backup.exec-label=BackupMain"
  1. On each node (MASTER_1, WORKER_1, WORKER_2) start offen-backup docker
  2. Mount volume: - pg-backup-data:/backup/pg-backup-data:ro
  3. Add labels for each offen-backup (MASTER_1, WORKER_1, WORKER_2)
  • "docker-volume-backup.archive-post=/bin/sh -c 'backup'"
  • "docker-volume-backup.exec-label=BackupMain"
  1. Start one more offen-backup on MASTER_1 = OffenBackupMain
  2. For OffenBackupMain mount: /var/run/docker.sock:/var/run/docker.sock
  3. For OffenBackupMain add env variable: EXEC_LABEL=BackupMain
  4. Go inside OffenBackupMain - docker exec -it ...
  5. Run command: backup
  6. See: backup only ONE postgres docker - on MASTER_1. Two others - not

Expected behavior
OffenBackup docker in swarm mode should search labels on all nodes

Version (please complete the following information):

  • Image Version: v2.39.1
  • Docker Version: 25.0.5

Additional context
No additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationsupportSupport Requests

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions