Add DeleteOpts for container deletion

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-06-23 11:57:29 -07:00
parent bcb04540fa
commit 3f45e4369e
4 changed files with 29 additions and 19 deletions

View File

@@ -31,7 +31,7 @@ func BenchmarkContainerCreate(b *testing.B) {
var containers []Container
defer func() {
for _, c := range containers {
if err := c.Delete(ctx); err != nil {
if err := c.Delete(ctx, WithRootFSDeletion); err != nil {
b.Error(err)
}
}
@@ -77,7 +77,7 @@ func BenchmarkContainerStart(b *testing.B) {
var containers []Container
defer func() {
for _, c := range containers {
if err := c.Delete(ctx); err != nil {
if err := c.Delete(ctx, WithRootFSDeletion); err != nil {
b.Error(err)
}
}