cAdvisor on Synology

cAdvisor on Synology Running cAdvisor in Docker on Synology was a challenge, as it often wouldnโ€™t start despite no changes to the launch options. The issue turned out to be related to the inotify settings. The Problem When running the following command to start cAdvisor: docker run --name=cadvisor \ --volume="/:/rootfs:ro" \ --volume="/var/run:/var/run:ro" \ --volume="/sys:/sys:ro" \ --volume="/var/packages/ContainerManager/var/docker/:/var/lib/docker:ro" \ --security-opt no-new-privileges=true \ --restart=on-failure:5 \ google/cadvisor:latest --docker_only=true cadvisor: image: gcr.io/cadvisor/cadvisor:latest container_name: cadvisor read_only: true security_opt: - no-new-privileges=true command: - "--docker_only=true" volumes: - /:/rootfs:ro - /var/run:/var/run:ro - /sys:/sys:ro - /var/packages/ContainerManager/var/docker/:/var/lib/docker:ro restart: on-failure:5 I encountered the error: ...

2024-11-07 ยท 1 min ยท 205 words ยท Stefan