mirror of https://github.com/docker/docs.git
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:
commit
d03c5bb211
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue