我把ganglia容器化了.因?yàn)樾枰O(jiān)測(cè)主機(jī)的信息,所以掛載了卷,詳細(xì)的命令見(jiàn)docker-compose.yml:
ganglia:
image: ganglia
privileged: true
container_name: ganglia
volumes:
- /sys:/sys
- /dev:/dev
net: host
ipc: host
pid: host
運(yùn)行docker-compose up -d
報(bào)錯(cuò):
adolph@geek:ganglia$ dc up -d
Creating ganglia
ERROR: Cannot start container bfaed04a43f32319713a86b1c833180edb520801b3e650131d331ef73410ec7e: /dev/mqueue is not mounted, but must be for --ipc=host
希望大家?guī)兔鉀Q下
dockerfile GitHub地址
人生最曼妙的風(fēng)景,竟是內(nèi)心的淡定與從容!
Problem found. In my usage case (ubuntu 14.04 docker 1.9.1)
ls -al /dev | grep mqueue
Found that there is no such directory in the /dev
directory
sudo mkdir -p /dev/mqueue
Create this directory and restart the container