我把ganglia容器化了.因为需要监测主机的信息,所以挂载了卷,详细的命令见docker-compose.yml:
ganglia:
image: ganglia
privileged: true
container_name: ganglia
volumes:
- /sys:/sys
- /dev:/dev
net: host
ipc: host
pid: host
运行docker-compose up -d
报错:
adolph@geek:ganglia$ dc up -d
Creating ganglia
ERROR: Cannot start container bfaed04a43f32319713a86b1c833180edb520801b3e650131d331ef73410ec7e: /dev/mqueue is not mounted, but must be for --ipc=host
希望大家帮忙解决下
dockerfile GitHub地址
내 사용 사례에서 문제가 발견되었습니다(ubuntu 14.04 docker 1.9.1)
으아악/dev
디렉터리이 디렉터리를 만들고 컨테이너를 다시 시작하세요