mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 23:38:24 +00:00
do not alter json in docker save
Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
This commit is contained in:
+1
-1
@@ -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