docker-cleanup-volumes icon indicating copy to clipboard operation
docker-cleanup-volumes copied to clipboard

boot2docker flavor

Open remuslazar opened this issue 9 years ago • 4 comments

Use a separate shellscript for doing the same job but for boot2docker environments (currently only tested on MacOS..).

See the updated README for more usage details.

remuslazar avatar May 16 '15 11:05 remuslazar

I'm not sure this is necessary. If you want to use this with boot2docker you can use the Docker image, you just need to pass along the necessary environment variables and files:

$ docker run -e DOCKER_CERT_PATH=$DOCKER_CERT_PATH -e DOCKER_TLS_VERIFY=$DOCKER_TLS_VERIFY -e DOCKER_HOST=$DOCKER_HOST -v $DOCKER_CERT_PATH:$DOCKER_CERT_PATH -v /var/lib/docker:/var/lib/docker --rm martin/docker-cleanup-volumes

It's not very sexy, but it doesn't require a separate script. You can throw it into a wrapper script to make it easy to use. It will also work with any remote Docker daemon, not just boot2docker.

dsanders11 avatar Jun 08 '15 04:06 dsanders11

@remuslazar, I've created a fork of this project which provides a nicer wrapper script that encapsulates all of the above.

dsanders11 avatar Jun 08 '15 07:06 dsanders11

Hi, I agree a seperate script is not really necessary. I'm leaving this PR open for reference only for now.

@dsanders11, interesting changes you did there, I may have to borrow some of your code once I find the time to install boot2docker on.. something.. to play around with it (which is way way down at the bottom on my todo list).

chadoe avatar Jun 20 '15 17:06 chadoe

@chadoe, definitely borrow anything you like! I know how you feel about infinite todo lists. I'm actually not even using boot2docker, but rather a CentOS virtual machine I was using before I started Dockerizing. The nice thing about the Docker client is it is easy to point anywhere through the use of DOCKER_HOST so I have the daemon running on the VM and my OS X client pointing to it.

dsanders11 avatar Jun 21 '15 01:06 dsanders11