Merge pull request #356 from aluzzardi/dockerfile-set-host

Dockerfile: Set swarm to bind to all interfaces in container mode.
This commit is contained in:
Victor Vieux 2015-02-02 18:49:40 -08:00
commit d03c5bb211
1 changed files with 2 additions and 0 deletions

View File

@ -6,7 +6,9 @@ WORKDIR /go/src/github.com/docker/swarm
ENV GOPATH /go/src/github.com/docker/swarm/Godeps/_workspace:$GOPATH
RUN CGO_ENABLED=0 go install -v -a -tags netgo -ldflags "-w -X github.com/docker/swarm/version.GITCOMMIT `git rev-parse --short HEAD`"
ENV SWARM_HOST :2375
EXPOSE 2375
VOLUME $HOME/.swarm
ENTRYPOINT ["swarm"]