Docker currently doesn't support 32-bit hosts. Let's make that clear by failing right away with an informative message

Upstream-commit: f7837599283ff89493d4fcfb7d9a046a7f9dc13b
Component: engine
This commit is contained in:
Solomon Hykes
2013-03-21 02:04:10 -07:00
parent f6ae897923
commit cb03d9d3f5
+5
View File
@@ -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
// }