Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Correct Docker Commands for Swarm Configuration #3

Open
hipnologo opened this issue Nov 30, 2024 · 0 comments
Open

Use Correct Docker Commands for Swarm Configuration #3

hipnologo opened this issue Nov 30, 2024 · 0 comments

Comments

@hipnologo
Copy link
Owner

The command docker swarm inspect used in the backup_swarm_config method is invalid and causes an error. This prevents the script from successfully backing up the Docker Swarm configuration.

Proposed Solution:
• Replace Invalid Command:
• Use docker info --format '{{json .Swarm}}' to retrieve the Swarm configuration in JSON format.
• Update Swarm Backup Logic:
• Ensure the retrieved configuration is saved correctly in the backup files.

Tasks:
• Update the backup_swarm_config method with the correct Docker command.
• Adjust any parsing or file-writing logic as needed for the new command output.
• Test the updated method to verify that the Swarm configuration is backed up properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant