mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
'docker inspect' can lookup image by repository and tag
This commit is contained in:
parent
f8ebeaae10
commit
542c66997f
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ func (srv *Server) CmdInspect(stdin io.ReadCloser, stdout io.Writer, args ...str
|
|||
var obj interface{}
|
||||
if container := srv.runtime.Get(name); container != nil {
|
||||
obj = container
|
||||
} else if image, err := srv.runtime.graph.Get(name); err != nil {
|
||||
} else if image, err := srv.runtime.repositories.LookupImage(name); err != nil {
|
||||
return err
|
||||
} else if image != nil {
|
||||
obj = image
|
||||
|
|
Loading…
Add table
Reference in a new issue