mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix bad rebase
Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
This commit is contained in:
parent
21f56c04e4
commit
3f6324f0e8
1 changed files with 4 additions and 0 deletions
|
@ -1857,6 +1857,10 @@ func (srv *Server) DeleteImage(name string, imgs *engine.Table, first, force boo
|
|||
tags = append(tags, tag)
|
||||
}
|
||||
|
||||
if !first && len(tags) > 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
//Untag the current image
|
||||
for _, tag := range tags {
|
||||
tagDeleted, err := srv.runtime.repositories.Delete(repoName, tag)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue