1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-15 02:37:27 +08:00

Remove volumes when deleting instances

Fixes #1
This commit is contained in:
Marcos Lilljedahl 2016-10-09 21:16:58 +02:00
parent 97f39ca375
commit 672b85cfe3

View File

@ -94,5 +94,5 @@ func CreateInstance(net string) (*ptypes.Instance, error) {
} }
func DeleteContainer(id string) error { func DeleteContainer(id string) error {
return c.ContainerRemove(context.Background(), id, types.ContainerRemoveOptions{Force: true}) return c.ContainerRemove(context.Background(), id, types.ContainerRemoveOptions{Force: true, RemoveVolumes: true})
} }