-
Notifications
You must be signed in to change notification settings - Fork 198
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
syntax error when using the file stand lone #7
Comments
++ 1 cleanup.sh: 3: set: Illegal option -o pipefail |
Error HERE allvolumes+="${bmv}" |
im sure the author would accept a PR ;) |
finally I solve my problem using such single command line :P
|
this command clean up your volumes? without removing the active or used volumes? |
sweep all volumes, i am afraid that the active ones are removed too. just my special case |
you might want this tool, maybe better than the shell script. |
Hi, docker-cleanup-volumes.sh is a bash script, boot2docker does not have bash installed by default so you either have to install bash on it or use the docker image for this script. |
boot2docker comes with bash (mingw) but its old... $ echo $BASH_VERSION
3.1.23(6)-release not sure if backporting makes sense, but the dockerized version works fine if you ssh into the VM. boot2docker ssh
# wait until connection is established...
docker run -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --rm martin/docker-cleanup-volumes --dry-run Btw: to paste the |
there is some error when running without --dry-run option: [vagrant@devenv docker-cleanup-volumes]$ sudo sh docker-cleanup-volumes.sh commented # the lines of the --dry-run option and this script works just fine! |
docker@boot2docker:
$ sh docker-cleanup-volumes.sh$docker-cleanup-volumes.sh: line 10: syntax error: unexpected "("
docker@boot2docker:
The text was updated successfully, but these errors were encountered: