Merge remote-tracking branch 'origin/148-remove_repositories-feature'
This commit is contained in:
commit
54dfedc516
1 changed files with 5 additions and 1 deletions
|
@ -351,7 +351,11 @@ func (srv *Server) CmdRmi(stdin io.ReadCloser, stdout io.Writer, args ...string)
|
|||
return nil
|
||||
}
|
||||
for _, name := range cmd.Args() {
|
||||
if err := srv.runtime.graph.Delete(name); err != nil {
|
||||
img, err := srv.runtime.repositories.LookupImage(name)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := srv.runtime.graph.Delete(img.Id); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue