Docker workflow plugin - volume leak

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Docker workflow plugin - volume leak

Robert Hafner-2

In our use of the docker workflow plugin we are seeing that volumes are being leaked when the container is removed. Is there an option that can be specified in a pipeline script that will result in the docker workflow plugin running the docker rm command with the -v option?


The problem that we are experiencing seems similar in nature to the following JIRA issues that have been open for some time.


We may be willing to contribute an enhancement to the plugin to support the -v option on the docker rm command if there isn’t a way to do that already.  We are considering something along the lines of the following. Would this change be acceptable?


stage("Integration Tests") { 
  agent { 
    docker { 
      alwaysPull true 
      reuseNode true 
      removeVolume true // New parameter? 
      args "-u root --privileged -v ${env.WORKSPACE}:/workspace" 














You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit