Explorar el Código

fix bad rebase

Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
Victor Vieux hace 11 años
padre
commit
3f6324f0e8
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      server.go

+ 4 - 0
server.go

@@ -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)