File tree 1 file changed +5
-3
lines changed 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 {
210
210
for id := range r .containerIDs {
211
211
r .log .Infof ("Removing container %s" , id )
212
212
if err := r .client .RemoveContainer (docker.RemoveContainerOptions {
213
- ID : id ,
214
- Force : true ,
213
+ ID : id ,
214
+ Force : true ,
215
+ RemoveVolumes : true ,
215
216
}); err != nil && ! isNoSuchContainer (err ) {
216
217
r .log .Warningf ("Failed to remove container %s: %#v" , id , err )
217
218
}
@@ -268,7 +269,8 @@ func (r *dockerRunner) gc() {
268
269
// Container is dead for more than 10 minutes, gc it.
269
270
r .log .Infof ("Removing old container %s" , id )
270
271
if err := r .client .RemoveContainer (docker.RemoveContainerOptions {
271
- ID : id ,
272
+ ID : id ,
273
+ RemoveVolumes : true ,
272
274
}); err != nil {
273
275
r .log .Warningf ("Failed to remove container %s: %#v" , id , err )
274
276
} else {
You can’t perform that action at this time.
0 commit comments