Can't set configs on docker run
See original GitHub issueI 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:
- Created 5 years ago
- Comments:10 (6 by maintainers)
Top 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 >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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You welcome, Btw, except if it is on purpose, you should not need the
--privileged
on your docker runEither 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