mirror of https://github.com/docker/docs.git
Merge pull request #517 from gegere/readme/update
Adding additional notes for installing Go via Homebrew on Mac OS X
This commit is contained in:
commit
14108ccaa1
15
README.md
15
README.md
|
|
@ -26,9 +26,10 @@ Full documentation [is available here](http://docs.docker.com/swarm/).
|
|||
|
||||
## Development installation
|
||||
|
||||
You can download and install from source instead of using the Docker image.
|
||||
You can download and install from source instead of using the Docker image.
|
||||
Ensure you have golang, godep and git client installed.
|
||||
|
||||
Ensure you have golang, godep and git client installed. For example, on Ubuntu you'd run:
|
||||
**For example, on Ubuntu you'd run:**
|
||||
|
||||
```bash
|
||||
apt-get install golang git
|
||||
|
|
@ -37,6 +38,16 @@ go get github.com/tools/godep
|
|||
|
||||
You may need to set `$GOPATH`, e.g `mkdir ~/gocode; export GOPATH=~/gocode`.
|
||||
|
||||
|
||||
**For example, on Mac OS X you'd run:**
|
||||
|
||||
```bash
|
||||
brew install go
|
||||
export GOPATH=~/go
|
||||
export PATH=$PATH:~/go/bin
|
||||
go get github.com/tools/godep
|
||||
```
|
||||
|
||||
Then install the `swarm` binary:
|
||||
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Reference in New Issue