In order to run docker container on Marathon, I install the dockerToolBox.
I start mesos-slave with
containerizers=docker,mesos --executor_registration_timeout=5mins
Then I post an App with docker container to Marathon.
And the mesos-slave told me :
I1218 16:16:18.569870 251678720 containerizer.cpp:1284] Executor for container '3ca60aeb-0a15-4b93-9ff2-b09c9aa4a610' has exited
I1218 16:16:18.569905 251678720 containerizer.cpp:1097] Destroying container '3ca60aeb-0a15-4b93-9ff2-b09c9aa4a610'
Failed to perform recovery: Collect failed: Failed to 'docker -H unix:///var/run/docker.sock ps -a': exit status = exited with status 1 stderr = Cannot connect to the Docker daemon. Is the docker daemon running on this host?
so i excute docker -H unix:///var/run/docker.sock ps -a
on my mac , it told me the same error
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
then i excute docker-machine ssh default
into the VM ,
and excute docker -H unix:///var/run/docker.sock ps -a
, it works.
is it mean that it is impossible run docker containner on marathon with Mac Os beacause of Mac Os use the VM to run docker ???