influxdb
- influxdb: 有收费版本、有开源版本
docker run -itd --name influxdb-dev -p 8086:8086 influxdb
#influxdb的web客户端(端口8003)被去掉了
#8006是web-service端口
docker pull chronograf
docker run -d -p 8888:8888 --name chronograf-dev chronograf
sudo netstat -lntp | grep docker
发现端口都属于docker-proxy,
sudo netstat -lntp | grep docker
tcp 0 0 0.0.0.0:8086 0.0.0.0:* LISTEN 34415/docker-proxy
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN 35428/docker-proxy
tcp6 0 0 :::8086 :::* LISTEN 34422/docker-proxy
tcp6 0 0 :::8888 :::* LISTEN 35434/docker-proxy
ip a
找到docker-proxy的ip为172.17.0.1
5: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default link/ether 02:42:eb:20:03:d0 brd ff:ff:ff:ff:ff:ffinet 172.17.0.1/16 brd 172.17.255.255 scope global docker0valid_lft forever preferred_lft foreverinet6 fe80::42:ebff:fe20:3d0/64 scope link valid_lft forever preferred_lft forever
于是浏览器访问chronograf即 http://docker-proxy的ip:8888
netdiscover扫描docker-proxy下的ip列表
扫描docker-proxy下的ip列表, 可以发现有3个docker实例(显示了各自ip)
sudo apt install netdiscover
sudo netdiscover -i docker0 -r 172.17.0.0/24
用docker命令查看其下主机列表(验证netdiscover扫描结果是对的)
docker network ls
docker的主机列表:
NETWORK ID NAME DRIVER SCOPE
bf28b378033c bridge bridge local
56d37190ece4 host host local
01095511f0de none null local
docker network ls --format '{{.Name}}' | xargs -I@ sh -c "echo @; docker network inspect @ --format='{{range .Containers}}{{.Name}}: {{.IPv4Address}}{{println}}{{end}}' "
docker主机列表(显示ip):
bridge
influxdb-dev: 172.17.0.3/16
chronograf-dev: 172.17.0.4/16
timescaledb: 172.17.0.2/16
#这里验证了netdiscover扫描结果是对的host
可lash: none
timescaledb
timescaledb : 貌似没发现 图形化客户端