我把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地址
Problem found. In my usage case (ubuntu 14.04 docker 1.9.1)
Found that there is no such directory in the
/dev
directoryCreate this directory and restart the container