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

docker:stop has no option to remove associated volumes #120

Closed
djimenez opened this issue Mar 11, 2015 · 1 comment
Closed

docker:stop has no option to remove associated volumes #120

djimenez opened this issue Mar 11, 2015 · 1 comment

Comments

@djimenez
Copy link
Contributor

If i docker:start a container that's supposed to have volumes, docker may create one or more automatic volumes for it which won't get removed without the "v" option:

https://docs.docker.com/reference/api/docker_remote_api_v1.17/#remove-a-container

"bind-mounts" don't get touched by this option, it only concerns the automatically created volume directories and their contents usually found under /var/lib/docker/vfs/dir/

It'd be nice if your remove container did this by default, or if you added an option to set the parameter.

thanks.

@rhuss
Copy link
Collaborator

rhuss commented Mar 13, 2015

Thanks for the PR. It is applied and availabl in the next release (0.11.3)

@rhuss rhuss closed this as completed Mar 13, 2015
leusonmario pushed a commit to leusonmario/docker-maven-plugin that referenced this issue Aug 18, 2018
Add pullOnBuild flag to pull base images on build
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

2 participants