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

Installing InfluxDB and Chronograf in Docker

Highlighted
Pearl

Installing InfluxDB and Chronograf in Docker

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.

1 REPLY 1

Re: Installing InfluxDB and Chronograf in Docker

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