cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Installing InfluxDB and Chronograf in Docker

No ratings

Installing an Open Source Time Series Platform


For testing InfluxDB and its graphical user interface, Chronograf I'm using Docker images for easy deployment. For this post I assume you have worked with Docker before.

 

In this setup, InfluxDB and Chronograf will share an internal docker network to exchange data.

 

  • InfluxDB can be accessed e.g. by ThingWorx via its exposed port 8086.
  • Chronograf can be accessed to administrative purposes via its port 8888.

The following commands can be used to create a InfluxDB environment.

 

Pull images

 

sudo docker pull influxdb:latest
sudo docker pull chronograf:latest

 

Create a virtual network

 

sudo docker network create influxdb

 

Start the containers

 

sudo docker run -d --name=influxdb -p 8086:8086 --net=influxdb --restart=always influxdb
sudo docker run -d --name=chronograf -p 8888:8888 --net=influxdb --restart=always chronograf --influxdb-url=http://influxdb:8086

 

 

InfluxDB should now be reachable and will also restart automatically when Docker (or the Operating System) are restarted.

Comments

Docker Compose flavor procedure can be found here : https://www.influxdata.com/blog/tips-for-running-the-tick-stack-using-docker/

Version history
Last update:
‎Jan 22, 2019 09:46 AM
Updated by: