mirror of https://github.com/docker/docs.git
Merge pull request #432 from bacongobbler/patch-1
use Godep to install from source
This commit is contained in:
commit
e3e7ddb616
18
README.md
18
README.md
|
@ -25,13 +25,21 @@ Full documentation [is available here](http://docs.docker.com/swarm/).
|
|||
|
||||
You can download and install from source instead of using the Docker image.
|
||||
|
||||
Ensure you have golang and git client installed (e.g. `apt-get install golang git` on Ubuntu).
|
||||
You may need to set `$GOPATH`, e.g `mkdir ~/gocode; export GOPATH=~/gocode`.
|
||||
|
||||
The install `swarm` binary to your `$GOPATH` directory.
|
||||
Ensure you have golang, godep and git client installed. For example, on Ubuntu you'd run:
|
||||
|
||||
```bash
|
||||
go get -u github.com/docker/swarm
|
||||
apt-get install golang git
|
||||
go get github.com/tools/godep
|
||||
```
|
||||
|
||||
You may need to set `$GOPATH`, e.g `mkdir ~/gocode; export GOPATH=~/gocode`.
|
||||
|
||||
Then install the `swarm` binary:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/docker/swarm
|
||||
cd swarm
|
||||
godep go install .
|
||||
```
|
||||
|
||||
From here, you can follow the instructions [in the main documentation](http://docs.docker.com/swarm/),
|
||||
|
|
Loading…
Reference in New Issue