1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

refactor(dockerui): replace -s flag with -swarm

This commit is contained in:
Anthony Lapenna 2016-06-21 12:27:32 +12:00
parent 54c82a3a5c
commit 9ca2aa9bbd
3 changed files with 6 additions and 5 deletions

View file

@ -26,15 +26,16 @@ By default UI For Docker connects to the Docker daemon with`/var/run/docker.sock
You can use the `-e` flag to change this socket:
# Connect to a tcp socket:
$ docker run -d -p 9000:9000 --privileged cloudinovasi/cloudinovasi-ui -e http://127.0.0.1:2375
$ docker run -d -p 9000:9000 cloudinovasi/cloudinovasi-ui -e http://127.0.0.1:2375
### Swarm support
You can access a specific view for you Swarm cluster by defining the `-s` option:
You can access a specific view for you Swarm cluster by defining the `-swarm` flag:
# Connect to a tcp socket and enable Swarm:
$ docker run -d -p 9000:9000 --privileged cloudinovasi/cloudinovasi-ui -e http://<SWARM_HOST>:<SWARM_PORT> -s
$ docker run -d -p 9000:9000 cloudinovasi/cloudinovasi-ui -e http://<SWARM_HOST>:<SWARM_PORT> -swarm
*NOTE*: At the moment, only *Swarm 1.2.0* is supported.
### Change address/port UI For Docker is served on
UI For Docker listens on port 9000 by default. If you run UI For Docker inside a container then you can bind the container's internal port to any external address and port: