[修改]node-exporter特权模式

This commit is contained in:
10908
2024-09-23 14:40:41 +08:00
committed by Coding
parent 0938336791
commit d59cf061ab
4 changed files with 11 additions and 6 deletions

View File

@@ -22,4 +22,6 @@ RUN architecture=$(uname -m); \
exit 1; \
fi
CMD ["node_exporter"]
RUN mkdir /host
CMD ["node_exporter","--path.rootfs=/host"]