1
,當我在mesos - 從開始泊塢窗containnermesos從未能EXCUTE泊塢窗命令
的mesos - 從日誌顯示:
I1223 15:38:40.822557 258486272 docker.cpp:761] Starting container 'ea1ed2fa-c2e3-469a-bcc4-142e0a6c624d' for task '2-1.2fb839ea-a948-11e5-9c42-2e7bf2aa25a6' (and executor '2-1.2fb839ea-a948-11e5-9c42-2e7bf2aa25a6') of framework '13165a00-8e58-4d80-b84d-fe4652022a3e-0000'
E1223 15:38:41.219044 254730240 slave.cpp:3342] Container 'ea1ed2fa-c2e3-469a-bcc4-142e0a6c624d' for executor '2-1.2fb839ea-a948-11e5-9c42-2e7bf2aa25a6' of framework '13165a00-8e58-4d80-b84d-fe4652022a3e-0000' failed to start: Failed to 'docker -H unix:///var/run/docker.sock pull python:3': exit status = exited with status 1 stderr = An error occurred trying to connect: Post https:///var/run/docker.sock/v1.19/images/create?fromImage=python%3A3: dial unix /var/run/docker.sock: no such file or directory
從,我可以看到mesos - 從EXCUTE docker -H unix:///var/run/docker.sock pull python:3
下載圖像。
但我使用的是Mac OSX,而碼頭運行在vm中,01所以在我的slave上沒有docker.sock
文件,但是vm。
我是如何解決Mac OSX上的問題的?請幫助我,謝謝!
那麼,你在Mac OS上本機運行Mesos? Docker與docker-machine一起運行? – Tobi
我只是用boot2docker,而不是docker-machine,你有什麼想法嗎?,謝謝 – KingOfSocket
Mesos Master and Slave也是通過boot2docker啓動的?如果是這樣,你需要傳入Docker套接字作爲卷。看看https://github.com/tobilg/coreos-setup/blob/master/etc/systemd/system/mesos-slave.service#L18 – Tobi