Both Swarm manager & Mesos Slave will communicate with docker daemon: Swarm access Docker daemon through REST API, such as `docker ps; Mesos run docker image by docker command through unix domain socket. So the docker daemon in each node much accept tcp & unix domain socket as follow:
docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
Each node in your swarm must run a Mesos slave. The slave must be capable of starting tasks in a Docker Container using the --containerizers=docker
option. For example:
mesos-slave --containerizers=docker,mesos --master=zk://zknode:2181/mesos --isolation=cgroups
swarm --debug manage -c mesos-experimental \
--cluster-opt mesos.address=0.0.0.0 \
--cluster-opt mesos.tasktimeout=10m \
--cluster-opt mesos.user=root \
--cluster-opt mesos.offertimeout=1m \
--cluster-opt mesos.port=3375 --host 0.0.0.0:4375 zk://zhhost1:2181/mesos