docs: update docker build instructions

This commit is contained in:
Kelsey Hightower
2015-01-13 10:44:06 -08:00
parent a9f3734fe2
commit 51d32148ec
+1 -1
View File
@@ -28,5 +28,5 @@ cd rocket; ./build
Alternatively, you can build rocket in a docker container with the following command. Replace $SRC with the absolute path to your rocket source code:
```
docker run -v $SRC:/opt/rocket -i -t google/golang /bin/bash -c "apt-get install -y cpio squashfs-tools realpath && cd /opt/rocket && go get github.com/jteeuwen/go-bindata/... && go get github.com/appc/spec/... && ./build"
$ sudo docker run -v $SRC:/opt/rocket -i -t golang:1.3 /bin/bash -c "apt-get update && apt-get install -y coreutils cpio squashfs-tools realpath && cd /opt/rocket && go get github.com/jteeuwen/go-bindata/... && go get github.com/appc/spec/... && ./build"
```