查看启动中的容器:dockers ps
查看所有容器:dockers ps -a
查看镜像:docker search grafana
根据镜像名称拉取镜像:docker pull grafana/grafana
生成grafana容器:docker run -d --name sunlin-grafana -p 3000:3000 grafana/grafana 进入grafana容器:docker exec -it sunlin-grafana bash生成influxdb容器:docker run -d --name sunlin-influxdb -p 8086:8086 influxdb
进入influxdb容器:docker exec -it sunlin-influx bash
删除influxdb容器:docker rm -f sunlin-influx 验证容器已删除:docker ps -a 标签:容器,ps,influxdb,grafana,命令,sunlin,docker From: https://www.cnblogs.com/sunlin1107/p/17554020.html