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

This commit is contained in:
Solomon Hykes 2013-03-21 02:04:10 -07:00
parent 3e9877a30f
commit f783759928
1 changed files with 5 additions and 0 deletions

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
// }