question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't set configs on docker run

See original GitHub issue

I am trying to set some configs like user and password on my cassandra_exporter, however, everytime I try to mount the config on the container, I have this error mentioned below.

I tried to set those configs using -e “VARKey value” but it also didn’t work.

As I see there are many people using it, I just assume I’m doing it wrong, but I didn’t figure out how to properly use it.

The configs are currently on /tmp/config.yml, but it was in different directories before, I was just trying to move around to check permissions.

docker run --privileged --rm -ti -v /tmp/config.yml:/etc/cassandra_exporter/config.yml --name cassandra-exporter criteord/cassandra_exporter

Starting Cassandra exporter
JVM_OPTS: 
CASSANDRA_EXPORTER_CONFIG_user 
sed: cannot rename /etc/cassandra_exporter/sedjzhwca: Device or resource busy

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
erebecommented, Jul 8, 2018

You welcome, Btw, except if it is on purpose, you should not need the --privileged on your docker run

1reaction
erebecommented, Jul 3, 2018

Either a password or your jmx on cassandra is not listening for remote connexion. You can look like at this issue https://github.com/criteo/cassandra_exporter/issues/4 in order to try it out

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't set custom data dir when running fresh docker image #861
Possibly a permission problem. Make sure /media/data is writable by the docker user or group. Presumably;. sudo chown rich /media/data. could ...
Read more >
Docker run reference
Configure containers at runtime.
Read more >
Run the Docker daemon as a non-root user (Rootless mode)
Run dockerd-rootless-setuptool.sh install as a non-root user to set up the daemon: ... The daemon config dir is set to ~/.config/docker by default....
Read more >
Docker Engine post-installation steps
These optional post-installation procedures shows you how to configure your Linux host machine to work better with Docker.
Read more >
Docker daemon configuration overview
To configure the Docker daemon using a JSON file, create a file at /etc/docker/daemon.json on Linux systems, or C:\ProgramData\docker\config\daemon.json on ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found