Browse Source

Merge pull request #707 from unclejack/411-add-arch-field

411 add architecture field
Guillaume J. Charmes 12 years ago
parent
commit
a373c770b6
2 changed files with 2 additions and 0 deletions
  1. 1 0
      graph.go
  2. 1 0
      image.go

+ 1 - 0
graph.go

@@ -107,6 +107,7 @@ func (graph *Graph) Create(layerData Archive, container *Container, comment, aut
 		DockerVersion: VERSION,
 		Author:        author,
 		Config:        config,
+		Architecture:  "x86_64",
 	}
 	if container != nil {
 		img.Parent = container.Image

+ 1 - 0
image.go

@@ -27,6 +27,7 @@ type Image struct {
 	DockerVersion   string    `json:"docker_version,omitempty"`
 	Author          string    `json:"author,omitempty"`
 	Config          *Config   `json:"config,omitempty"`
+	Architecture    string    `json:"architecture,omitempty"`
 	graph           *Graph
 }