我一直在嘗試使用docker-machine來設置swarm。我使用docker-hub令牌使用virtualbox驅動程序(swarm-master,swarm-node-00,swarm-node-01)創建了三個虛擬機羣。 這裏是信息:Docker-swarm錯誤:只讀文件系統
[[email protected] ~]$ $(docker-machine_linux-amd64 env --swarm swarm-master)
[[email protected] ~]$ docker info
Containers: 6
Nodes: 3
swarm-master: 192.168.99.103:2376
└ Containers: 2
└ Reserved CPUs: 0/4
└ Reserved Memory: 0 B/999.9 MiB
swarm-node-00: 192.168.99.104:2376
└ Containers: 1
└ Reserved CPUs: 0/4
└ Reserved Memory: 0 B/999.9 MiB
swarm-node-01: 192.168.99.105:2376
└ Containers: 3
└ Reserved CPUs: 0/4
└ Reserved Memory: 0 B/999.9 MiB
現在,當我嘗試使用這個羣運行的容器,我得到這個錯誤:
[[email protected] ~]$ docker run busybox echo "Hello World"
FATA[0029] Error response from daemon: Error pulling image (latest) from busybox, Mktemp failed: mkdir /mnt/sda1/var/lib/docker/graph/_tmp/2385573d8527cb02322beb23238c3d4bb1e35d4d6eec42ad0daa43b51a825eef: read-only file system
能否請你幫我弄清楚,究竟是什麼這裏錯了嗎?
這可能是因爲您的機器無法正確掛載VM中的持久存儲。 – Sabin 2015-03-26 17:46:34