# Prometheus its gives error in my docker

**URL:** <https://discuss.prometheus.io/t/prometheus-its-gives-error-in-my-docker/948>\
**Category:** General Help/Support\
**Created:** [April 28, 2022, 6:38pm UTC](https://discuss.prometheus.io/t/prometheus-its-gives-error-in-my-docker/948 "2022-04-28T18:38:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roycordero](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/roycordero/32/421_2.png) [@roycordero](https://discuss.prometheus.io/u/roycordero)\
**Post date:** [April 28, 2022, 6:38pm UTC](https://discuss.prometheus.io/t/prometheus-its-gives-error-in-my-docker/948/1 "2022-04-28T18:38:22Z")

</div>

Hi, it’s my 1st time in the forum and I’ve never had problems before but now I do and I’d appreciate it if you could help me.

mount my new NAS server with OMV5 in a dell optiplex and it works very well for me, but I wanted to install prometheus with node-xporter and grafana and it is giving me many errors that I will describe in detail with images of all at the end

1st I ran node-exporter:  
`root@OPENMEDIAVAULT:~# docker run -d --net="host" --pid="host" -v "/:host:ro,rslave" quay.io/prometheus/node-exporter:latest --path.rootfs=host`

**enter in `http://192.168.2.5:9100/metrics` its all good**

2nd create the configuration folder and paste the .yml from my old server:

`root@OPENMEDIAVAULT:/var/lib/docker/config-docker/ **Prometheus** # nano prometheus.yml`

* * *

global:  
scrape\_interval: 5s  
external\_labels:  
monitor: ‘node’  
scrape\_configs:

- job\_name: ‘prometheus’  
static\_configs:
  - targets: [‘192.168.2.5:9090’]

- job\_name: ‘node-exporter’  
static\_configs:
  - targets: [‘192.168.2.5:9100’]

- job\_name: ‘cAdvisor’  
static\_configs:
  - targets: [‘192.168.2.5:8080’]

- job\_name: ‘raspi-openwrt-router1’  
static\_configs:
  - targets: [‘192.168.2.1:9100’]

- job\_name: ‘snmp-ddwrt-r9000’  
metrics\_path: /snmp  
params:  
module: [ddwrt]  
static\_configs:
  - targets: [‘192.168.2.2’]  
relabel\_configs:
  - source\_labels: [**address**]  
target\_label: \_\_param\_target
  - source\_labels: [\_\_param\_target]  
target\_label: instance
  - target\_label: **address**  
replacement: 192.168.2.2:9116 # The SNMP exporter’s real hostname:port.

* * *

**good**

3rd I ran prometheus docker with:

`root@OPENMEDIAVAULT:/var/lib/docker/config-docker/Prometheus# docker run -d --name prometheus -p 9090:9090 -v /var/lib/docker/config-docker/Prometheus/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus`

i open prometheus at [http://192.168.2.5:9090/](http://192.168.2.5:9090/) and enter service discovery and the 1st error

I enter targets and the 2nd error

`ERROR Get "http://localhost:9090/metrics": dial tcp: lookup localhost on [::1]:53: dial udp [::1]:53: connect: cannot assign requested address`

and the 3rd error I install grafana  
`root@OPENMEDIAVAULT:~# docker run -d --name grafana -p 3456:3000 grafana/grafana`  
and does not run  
and log with errors is long but I will place

```auto
Error relocating /run.sh: rl_set_keymap: symbol not found
Error relocating /run.sh: rl_variable_dumper: symbol not found
Error relocating /run.sh: rl_bind_keyseq_in_map: symbol not found
Error relocating /run.sh: write_history: symbol not found
Error relocating /run.sh: rl_on_new_line: symbol not found
Error relocating /run.sh: rl_clear_visible_line: symbol not found
Error relocating /run.sh: rl_completion_matches: symbol not found
Error relocating /run.sh: rl_completion_mode: symbol not found
Error relocating /run.sh: rl_add_undo: symbol not found
Error relocating /run.sh: rl_cleanup_after_signal: symbol not found
Error relocating /run.sh: rl_list_funmap_names: symbol not found
Error relocating /run.sh: using_history: symbol not found

```

This is an installation that I have done many times without any problem but now I can’t find a way to make it work, and I think it’s because the prometheus is somehow looking for the address of localhost:9090 ainsted of 92.168.2.5:9090 and that’s why it doesn’t find node-exporter either and grafana can’t find any of them…

I wish you could help me or give me a clue since I’ve been trying to install it for several days and I can’t

 ![](https://europe1.discourse-cdn.com/flex017/uploads/prometheus/original/1X/e28bcd7afef742b210a14ed586b637895148a5f2.jpeg)

---

<div class="post-metadata">

**Author:** ![roycordero](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/roycordero/32/421_2.png) [@roycordero](https://discuss.prometheus.io/u/roycordero)\
**Post date:** [May 3, 2022, 5:32am UTC](https://discuss.prometheus.io/t/prometheus-its-gives-error-in-my-docker/948/2 "2022-05-03T05:32:41Z")

</div>

nobody?.. please
