docker save: raw json

Docker-DCO-1.1-Signed-off-by: Vincent Batts <vbatts@redhat.com> (github: vbatts)
This commit is contained in:
Vincent Batts
2014-06-20 14:38:17 -04:00
parent 6228761f67
commit d3bc787bca
2 changed files with 17 additions and 2 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
package graph
import (
"encoding/json"
"io"
"github.com/dotcloud/docker/engine"
@@ -136,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("raw") {
b, err := json.Marshal(image)
b, err := image.RawJson()
if err != nil {
return job.Error(err)
}