@@ -10,6 +10,7 @@ import (
"os"
"path"
"path/filepath"
+ "runtime"
"strings"
"syscall"
"time"
@@ -131,7 +132,8 @@ func (graph *Graph) Create(layerData archive.Archive, container *Container, comm
DockerVersion: VERSION,
Author: author,
Config: config,
- Architecture: "x86_64",
+ Architecture: runtime.GOARCH,
+ OS: runtime.GOOS,
}
if container != nil {
img.Parent = container.Image
@@ -28,6 +28,7 @@ type Image struct {
Author string `json:"author,omitempty"`
Config *Config `json:"config,omitempty"`
Architecture string `json:"architecture,omitempty"`
+ OS string `json:"os,omitempty"`
graph *Graph
Size int64