do not alter json in docker save
Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux) Upstream-commit: 3e4e8636c1b05626cae720b47ef99109077e1d3a Component: engine
This commit is contained in:
@ -135,7 +135,7 @@ func (s *TagStore) CmdLookup(job *engine.Job) engine.Status {
|
||||
}
|
||||
name := job.Args[0]
|
||||
if image, err := s.LookupImage(name); err == nil && image != nil {
|
||||
if job.GetenvBool("dirty") {
|
||||
if job.GetenvBool("raw") {
|
||||
b, err := json.Marshal(image)
|
||||
if err != nil {
|
||||
return job.Error(err)
|
||||
|
||||
Reference in New Issue
Block a user