mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
Update docker.go
Remove container volumes
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user