首先要下载swarm
docker pull swarm
然后停掉docker服务:
service docker stop
然后启动deamon:
sudo dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock &
查看是否监听2375端口:
netstat -ant