mirror of https://github.com/portainer/portainer
refactor(dockerui): replace -s flag with -swarm
parent
54c82a3a5c
commit
9ca2aa9bbd
|
@ -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:
|
You can use the `-e` flag to change this socket:
|
||||||
|
|
||||||
# Connect to a tcp 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
|
### 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:
|
# 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
|
### 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:
|
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:
|
||||||
|
|
|
@ -21,7 +21,7 @@ var (
|
||||||
endpoint = flag.String("e", "/var/run/docker.sock", "Dockerd endpoint")
|
endpoint = flag.String("e", "/var/run/docker.sock", "Dockerd endpoint")
|
||||||
addr = flag.String("p", ":9000", "Address and port to serve UI For Docker")
|
addr = flag.String("p", ":9000", "Address and port to serve UI For Docker")
|
||||||
assets = flag.String("a", ".", "Path to the assets")
|
assets = flag.String("a", ".", "Path to the assets")
|
||||||
swarm = flag.Bool("s", false, "Swarm mode")
|
swarm = flag.Bool("swarm", false, "Swarm mode")
|
||||||
authKey []byte
|
authKey []byte
|
||||||
authKeyFile = "authKey.dat"
|
authKeyFile = "authKey.dat"
|
||||||
)
|
)
|
||||||
|
|
|
@ -267,7 +267,7 @@ module.exports = function (grunt) {
|
||||||
command: [
|
command: [
|
||||||
'docker stop ui-for-docker',
|
'docker stop ui-for-docker',
|
||||||
'docker rm ui-for-docker',
|
'docker rm ui-for-docker',
|
||||||
'docker run --privileged -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock --name ui-for-docker ui-for-docker -s'
|
'docker run --privileged -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock --name ui-for-docker ui-for-docker -swarm'
|
||||||
].join(';')
|
].join(';')
|
||||||
},
|
},
|
||||||
cleanImages: {
|
cleanImages: {
|
||||||
|
|
Loading…
Reference in New Issue