1.拉取官方的镜像
docker pull influxdb
2.启动
docker run -d -p8083:8083 -p8086:8086 --expose 8090 --expose 8099 --name influxDbService influxdb
-d:deamon,后台启动
-p:port, 端口映射,宿主机端口:容器内端口;8083是influxdb的web管理工具端口,8086是influxdb的HTTP API端口
--expose:允许容器接受外部传入的数据
--name:容器名称,此处为influxDbService
influxdb:镜像名
3.进入容器内部
docker exec -it influxDbService bash
3.1 相关操作
查询表
show measurements
标签:--,influxDbService,expose,端口,influxdb,influxDB,docker,安装
From: https://www.cnblogs.com/colinyang/p/17509573.html