203 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Docker InfluxDB: Create Container with HTTP Authentictation
Sun, May 29th 2016 5
LotusScript: Easy and Fast @ReplaceSubstring Alternative
Sun, May 29th 2016 4
Top 10
Docker InfluxDB: Create Container with HTTP Authentictation
Sun, May 29th 2016 5
LotusScript: Easy and Fast @ReplaceSubstring Alternative
Sun, May 29th 2016 4


Docker InfluxDB: Create Container with HTTP Authentictation
Twitter Google+ Facebook LinkedIn Addthis Email Gmail Flipboard Reddit Tumblr WhatsApp StumbleUpon Yammer Evernote Delicious
   

The official Docker InfluxDB container will not start with authentication. In InfluxDB 0.13.0 the ability to control the config via Environment Variables was added. The easiest way to create a container with http authentication and creating an admin user is:

Create Container and set Admin User and Password

# Create temp Container
docker run -d
--name test-influx
-p 8083:8083 -p 8086:8086
-e INFLUXDB_HTTP_AUTH_ENABLED="true"
influxdb:0.13.0-alpine

# Create admin user in InfluxDB
docker exec -ti test-influx
/usr/bin/influx -execute "CREATE USER admin WITH PASSWORD 'pass' WITH ALL PRIVILEGES; SHOW USERS"

Accessing the InfluxDB Console from Shell

The influx console has to be accessed with username and password from now on.
docker exec -ti test-influx 
/usr/bin/influx -username 'admin' -password 'pass'

Bug: Empty password

There is a bug right now with leaving the password empty, to ge a prompt: [Bug] Empty Password for Prompt not working (/usr/bin/influx) #6746

---------------------
http://notes-jj.blogspot.com/2016/05/docker-influxdb-create-container-with.html
May 29, 2016
6 hits



Recent Blog Posts




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition