mirror of
https://github.com/docker/docs.git
synced 2026-03-30 15:58:53 +07:00
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:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user