diff --git a/docker-compose/cadvisor/docker-compose.yaml b/docker-compose/cadvisor/docker-compose.yaml index 65a7d29..5614e77 100755 --- a/docker-compose/cadvisor/docker-compose.yaml +++ b/docker-compose/cadvisor/docker-compose.yaml @@ -4,7 +4,7 @@ services: image: gcr.io/cadvisor/cadvisor:v0.47.0 container_name: cadvisor ports: - - "8080:8080" + - 8080:8080 network_mode: host volumes: - /:/rootfs:ro diff --git a/docker-compose/nodeexporter/docker-compose.yaml b/docker-compose/nodeexporter/docker-compose.yaml index 2846d3a..6d3b5cf 100755 --- a/docker-compose/nodeexporter/docker-compose.yaml +++ b/docker-compose/nodeexporter/docker-compose.yaml @@ -3,9 +3,8 @@ services: node_exporter: image: quay.io/prometheus/node-exporter:v1.5.0 container_name: node_exporter - command: - - '--path.rootfs=/host' + command: "--path.rootfs=/host" pid: host restart: unless-stopped volumes: - - '/:/host:ro,rslave' \ No newline at end of file + - /:/host:ro,rslave \ No newline at end of file