is working on open-falcon
of Xiaomi, one of which is retrieved from docker
.
follow the tutorial and execute docker"s:
-sharp make the imagerun commands under dir of dashboard:
docker build -t falcon-dashboard:v1.0 .
-sharp start the container
docker run -itd --name aaa --net host \
-e API_ADDR=http://127.0.0.1:8080/api/v1 \
-e PORTAL_DB_HOST=127.0.0.1 \
-e PORTAL_DB_PORT=3306 \
-e PORTAL_DB_USER=root \
-e PORTAL_DB_PASS=123456 \
-e PORTAL_DB_NAME=falcon_portal \
-e ALARM_DB_PASS=123456 \
-e ALARM_DB_HOST=127.0.0.1 \
-e ALARM_DB_PORT=3306 \
-e ALARM_DB_USER=root \
-e ALARM_DB_PASS=123456 \
-e ALARM_DB_NAME=alarms \
falcon-dashboard:v1.0
from the above command, you don"t see anything that-p is used to bind port mappings, but somehow you can still request the port of an item in the docker container.
that"s weird.