mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
add check to see if the image isn't parent of another and add -f to force
This commit is contained in:
parent
6102552d61
commit
67b20f2c8c
7 changed files with 37 additions and 12 deletions
|
|
@ -29,7 +29,7 @@ func TestContainerTagImageDelete(t *testing.T) {
|
|||
t.Errorf("Excepted 3 images, %d found", len(images))
|
||||
}
|
||||
|
||||
if err := srv.ImageDelete("utest/docker:tag2"); err != nil {
|
||||
if err := srv.ImageDelete("utest/docker:tag2", true); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
|
|
@ -42,7 +42,7 @@ func TestContainerTagImageDelete(t *testing.T) {
|
|||
t.Errorf("Excepted 2 images, %d found", len(images))
|
||||
}
|
||||
|
||||
if err := srv.ImageDelete("utest:tag1"); err != nil {
|
||||
if err := srv.ImageDelete("utest:tag1", true); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue