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

Add check for docker version to ensure the correct prune command #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rnwood13
Copy link

@rnwood13 rnwood13 commented Mar 2, 2024

Description

The docker volume prune command does work the same way in Docker version 23.0 or greater, in that it now only removes anonymous volumes by default. unRAID version 6.12.8 updated Docker to version 24.0.9 (see release notes). To restore the original functionality one can add the --all flag to the command, which removes all dangling volumes.

This change adds a check to Docker version and modifies the docker volume prune command if using version 23.0 or greater.

See Docker CLI issue #4028 for details.

How Has This Been Tested?

This has been tested on unRAID version 6.12.8 running Docker version 24.0.9, and also on a non-unRAID Linux machine running Docker version 20.10.25.

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

Successfully merging this pull request may close these issues.

1 participant