From f7837599283ff89493d4fcfb7d9a046a7f9dc13b Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Thu, 21 Mar 2013 02:04:10 -0700 Subject: [PATCH] Docker currently doesn't support 32-bit hosts. Let's make that clear by failing right away with an informative message --- commands.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/commands.go b/commands.go index ef3f6ed14..072c3dde4 100644 --- a/commands.go +++ b/commands.go @@ -12,10 +12,12 @@ import ( "github.com/dotcloud/docker/rcli" "io" "io/ioutil" + "log" "net/http" "net/url" "os" "path" + "runtime" "strconv" "strings" "sync" @@ -993,6 +995,9 @@ func (srv *Server) CmdRun(stdin io.ReadCloser, stdout io.Writer, args ...string) func NewServer() (*Server, error) { future.Seed() + 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 err != nil { // return nil, err // }