Comments (2)
Unfortunately, if you are root, that id will get the groups associated with root, not telegraf. I think it needs to be changed to:
hmm doing so would break what was fixed in #724 where the user does the following:
--user root:$(stat -c '%g' /var/run/docker.sock)
from influxdata-docker.
Does it? Hmm. Setpriv doesn't just add to the effective groups?
It's weird to me to say --user anybody
and the entrypoint.sh believes you, but if you say --user root
it hijacks the effective user (to make it "telegraf"), but not necessarily the effective group. The thing is, the 'docker' group is usually empty, and 'root' isn't in it, so to fix it they're trying to force the group to match whatever the docker socket's group is.
I think that's the wrong thing to do:
- You should run telegraf with least privilege, and for docker it doesn't need to be root
- You might want to extend this to do other things that require a different group access. The way this guy did it, you can only have one.
I'm thinking the whole thing needs to be reimagined.
from influxdata-docker.
Related Issues (20)
- docker pull influxdb HOT 1
- Telegraf container - logtarget/logfile not working when using input.docker with special user/group ID HOT 5
- [InfluxDBv2] Wrong Error Description for DOCKER_INFLUXDB_INIT_ADMIN_TOKEN
- [InfluxDBv2] Admin Token via `DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE` env var is not set in the container causing authorization errors HOT 1
- Automated Setup leaves a file behind preventing startup in influxdb:latest HOT 1
- Default directories
- Start Telegraf container with latest config from Influx Web UI [workaround] HOT 3
- Critical CVE-2018-12976 found in latest docker image HOT 6
- Influx DB 1.8 program will not open
- Chronograf 1.10.2 docker image critical vulnerability CVE-2023-45853
- Running in rootless docker is nonfunctional with host filesystem bind mounts due to overriden user ID inside container
- Telegraf: inputs.docker can no longer access Docker socket due to recent entrypoint.sh changes HOT 16
- InfluxDB won't load data after restart - Azure Blob storage
- InfluxDB hitting default port even after override with INFLUXD_HTTP_BIND_ADDRESS
- Starting a v2 container throws property not found: `tls-cert`, `tls-key` HOT 3
- influxdb:1.8.10 when deploy it on kubernetes don't create admin user
- Update all influx alpine images to 3.19 HOT 1
- Chronograf: error when upgrading from v1.10.3 to v1.10.4 HOT 3
- influxb image: platform in image-index and image-config do not match HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from influxdata-docker.