mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-10-05 09:53:21 +08:00
@@ -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})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user