Added nsswitch so that /etc/hosts file will work.
This commit is contained in:
1 parent
3bd13d018a
commit
7fc312e523
3 files changed
+11
-2
No files matched your search
@@ -11,6 +11,7 @@ ExecStartPre=-/usr/bin/docker rm %n
|
||||
ExecStart=/usr/bin/docker run --name %n \
|
||||
--network host \
|
||||
-v /srv/prometheus/prometheus:/prometheus \
|
||||
-v /srv/prometheus/etc/nsswitch.conf/etc/nsswitch.conf \
|
||||
-v /srv/prometheus/etc/prometheus:/etc/prometheus \
|
||||
prom/prometheus:v2.6.0 \
|
||||
--storage.tsdb.retention 365d --config.file=/etc/prometheus/prometheus.yml \
|
||||
|
||||
Reference in new issue
Block a user