File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -210,8 +210,9 @@ func (r *dockerRunner) Cleanup() error {
210210 for id := range r .containerIDs {
211211 r .log .Infof ("Removing container %s" , id )
212212 if err := r .client .RemoveContainer (docker.RemoveContainerOptions {
213- ID : id ,
214- Force : true ,
213+ ID : id ,
214+ Force : true ,
215+ RemoveVolumes : true ,
215216 }); err != nil && ! isNoSuchContainer (err ) {
216217 r .log .Warningf ("Failed to remove container %s: %#v" , id , err )
217218 }
@@ -268,7 +269,8 @@ func (r *dockerRunner) gc() {
268269 // Container is dead for more than 10 minutes, gc it.
269270 r .log .Infof ("Removing old container %s" , id )
270271 if err := r .client .RemoveContainer (docker.RemoveContainerOptions {
271- ID : id ,
272+ ID : id ,
273+ RemoveVolumes : true ,
272274 }); err != nil {
273275 r .log .Warningf ("Failed to remove container %s: %#v" , id , err )
274276 } else {
You can’t perform that action at this time.
0 commit comments