Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

use "docker volume" subcommand when using docker 1.9+ #25

Merged
merged 1 commit into from
May 24, 2016

Conversation

mfournier
Copy link
Contributor

docker-cleanup-volumes.sh doesn't remove volumes properly, since
docker introduced the "volume" subcommand in 1.9.0.

This patch detects the docker version, and runs either
docker-cleanup-volumes.sh or docker volume rm accordingly.

Fixes #24

`docker-cleanup-volumes.sh` doesn't remove volumes properly, since
docker introduced the "volume" subcommand in 1.9.0.

This patch detects the docker version, and runs either
`docker-cleanup-volumes.sh` or `docker volume rm` accordingly.

Fixes meltwater#24
@mfournier
Copy link
Contributor Author

NB: this introduces a hard dependency on having docker client version >= 1.8, as this version adds the --format switch to docker version. This shouldn't be a problem according to the Dockerfile

cf: https://docs.docker.com/v1.7/docker/reference/commandline/version/ and https://docs.docker.com/v1.8/reference/commandline/version/

@mikljohansson mikljohansson merged commit 2bcba27 into meltwater:master May 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants