Giter Site home page Giter Site logo

Comments (4)

powersj avatar powersj commented on August 17, 2024

su-exec: telegraf: Operation not permitted

are you using docker or some other runtime?

I know your examples show 'docker' as the command, but I want to be sure as some alias podman to docker for example and as I have not seen docker itself throw this error.

# does not work
docker run --rm -v $PWD/telegraf-pt-sample.conf:/etc/telegraf/telegraf.conf:ro telegraf

When you say it does not work Is the error from su-exec? This works just fine as my normal user and a simple config, so what am I missing with this?

from influxdata-docker.

severindellsperger avatar severindellsperger commented on August 17, 2024

Oh yes, indeed podman is my runtime.
I just tested it with docker as the runtime and it worked.
Anyway, I think it could be solved to run also with podman by introducing the USER introduction (see above).

Yeah, it does not work. Here is the full trace:

docker run  --rm  -v $PWD/telegraf-pt-sample.conf:/etc/telegraf/telegraf.conf:ro telegraf
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
setpriv: failed to execute telegraf: Operation not permitted

from influxdata-docker.

powersj avatar powersj commented on August 17, 2024

Adding user like that will cause issues for users who are trying to install additional packages. I know because we already did this once in 8352018 that caused a firestorm of issues, which is why we used su-exec in 069df69

My suggestion to you is to read through #646 to set the correct capabilities.

from influxdata-docker.

severindellsperger avatar severindellsperger commented on August 17, 2024

Alright, so let's close this issue at this point.
Thanks for the clarification.

from influxdata-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.