Last active
December 30, 2015 08:59
-
-
Save keisatou/7806236 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Building/installing the docker client on OS X: https://groups.google.com/forum/#!msg/docker-user/8m0Eh5nw-1U/J3SGYXqn1OMJ | |
$ go version | |
go version go1.2 darwin/amd64 | |
$ go env | |
GOARCH="amd64" | |
GOBIN="" | |
GOCHAR="6" | |
GOEXE="" | |
GOHOSTARCH="amd64" | |
GOHOSTOS="darwin" | |
GOOS="darwin" | |
GOPATH="/Users/keisatou/go" | |
GORACE="" | |
GOROOT="/usr/local/go" | |
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" | |
TERM="dumb" | |
CC="clang" | |
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fno-common" | |
CXX="clang++" | |
CGO_ENABLED="1" | |
$ go get github.com/dotcloud/docker | |
$ go install github.com/dotcloud/docker/docker | |
$ ls $GOPATH/bin | |
docker gocode hello | |
※ gocodeとhelloは関係無いです。 | |
$ docker version | |
Go version (client): go1.2 | |
2013/12/05 23:33:15 dial unix /var/run/docker.sock: no such file or directory | |
docker daemonが動いてないからエラーになるらしい。あくまでもコンパイルできたのはdocker client。 | |
ワークアラウンドが以下のページに載っている(Vagrant内でdeamon動かしてアクセスしてる。): | |
# https://coderwall.com/p/r6ivdq | |
Macでdockerクライアント動かして、VMで起動しているdocker daemonにアクセスして使うみたいなことができると何が嬉しいか? | |
メモ(docker daemon mode): http://docs.docker.io/en/latest/use/basics/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment