Update docker.go

Remove container volumes
This commit is contained in:
vrenjith 2016-08-04 11:43:50 +05:30 committed by GitHub
parent 4e603e1306
commit 41cf7cc623
1 changed files with 1 additions and 1 deletions

View File

@ -1015,7 +1015,7 @@ func (h *DockerHandle) run() {
}
// Remove the container
if err := h.client.RemoveContainer(docker.RemoveContainerOptions{ID: h.containerID, Force: true}); err != nil {
if err := h.client.RemoveContainer(docker.RemoveContainerOptions{ID: h.containerID, RemoveVolumes: true, Force: true}); err != nil {
h.logger.Printf("[ERR] driver.docker: error removing container: %v", err)
}