Browse Source

Update raspberrypi-monitoring.yml (#276)

Found that the "machine-id" in the zcube/cadvisor container was failing to read the file from the pi.. I added "- /etc/machine-id:/etc/machine-id:ro" (Line 23) in my yml file and the container no longer gives the error when spinning up the container. Forgive me if this is not the most appropriate way to do this as I am a novice at docker, but I am trying to do my part to help out with this fantastic project!
SteelZ691 3 năm trước cách đây
mục cha
commit
55c9f96d18
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      stack/raspberrypi-monitoring.yml

+ 1 - 0
stack/raspberrypi-monitoring.yml

@@ -20,6 +20,7 @@ services:
       - /var/run:/var/run:rw
       - /sys:/sys:ro
       - /var/lib/docker/:/var/lib/docker:ro
+      - /etc/machine-id:/etc/machine-id:ro
       
   grafana:
     container_name: monitoring-grafana