docker-workflow-plugin icon indicating copy to clipboard operation
docker-workflow-plugin copied to clipboard

Remove anonymous volumes on stop

Open jokogr opened this issue 4 years ago • 2 comments

This PR makes the Docker Pipeline Plugin to remove any anonymous volumes on container stop by appending the "-v" flag on the "docker rm" command.

Some Dockerfiles that run on my pipelines have the VOLUME instruction, so those volumes are staying in the system if they are not defined during container invocation / stay anonymous.

jokogr avatar Oct 22 '20 11:10 jokogr

Any updates here? It's annoying that plugin keeps anonymous volumes when container is removed..

lexaurin avatar May 12 '21 21:05 lexaurin

Same question, this would be very helpful indeed.

vhamon avatar May 25 '21 15:05 vhamon

Done by #286 I think.

jglick avatar Dec 01 '22 23:12 jglick