Skip to content

Instantly share code, notes, and snippets.

@hpfast
Forked from whiteley/server.go.diff
Last active August 29, 2015 14:05
Show Gist options
  • Save hpfast/b4b503472b7649703af9 to your computer and use it in GitHub Desktop.
Save hpfast/b4b503472b7649703af9 to your computer and use it in GitHub Desktop.
diff --git a/server.go b/server.go
index 646cb44..33cd4ea 100644
--- a/server.go
+++ b/server.go
@@ -1247,8 +1247,8 @@ func (srv *Server) ContainerCopy(name string, resource string, out io.Writer) er
}
func NewServer(flGraphPath string, autoRestart, enableCors bool, dns ListOpts) (*Server, error) {
- if runtime.GOARCH != "amd64" {
- log.Fatalf("The docker runtime currently only supports amd64 (not %s). This will change in the future. Aborting.", runtime.GOARCH)
+ if runtime.GOARCH != "amd64" && runtime.GOARCH != "686" {
+ log.Fatalf("The docker runtime currently only supports amd64 and 686 (not %s). This will change in the future. Aborting.", runtime.GOARCH)
}
runtime, err := NewRuntime(flGraphPath, autoRestart, dns)
if err != nil {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment