mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-12-16 16:04:18 +08:00
@@ -94,5 +94,5 @@ func CreateInstance(net string) (*ptypes.Instance, 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})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user