Merged master

This commit is contained in:
Solomon Hykes 2013-03-21 02:13:21 -07:00
commit b6b5e5cec1
1 changed files with 5 additions and 0 deletions

View File

@ -8,10 +8,12 @@ import (
"github.com/dotcloud/docker/auth"
"github.com/dotcloud/docker/rcli"
"io"
"log"
"math/rand"
"net/http"
"net/url"
"path"
"runtime"
"strconv"
"strings"
"sync"
@ -789,6 +791,9 @@ func (srv *Server) CmdRun(stdin io.ReadCloser, stdout io.Writer, args ...string)
func NewServer() (*Server, error) {
rand.Seed(time.Now().UTC().UnixNano())
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
// }