Docker swarm node unknown

I tried to run single node of swarm with compose:

version: ‘2’
services:
consul:
image: “progrium/consul:latest”
hostname: “consul1”
ports:
- “8400:8400”
- “8500:8500”
- “8600:53”
command: “-server -bootstrap -ui-dir /ui”
logging:
driver: journald
swarm:
image: swarm
ports:
- 4000:4000
depends_on:
- consul
command: “manage -H :4000 --replication --advertise localhost:4000 consul://consul:8500”
logging:
driver: journald
swarmagent:
image: swarm
depends_on:
- consul
command: “join --advertise=0.0.0.0:2375 consul://consul:8500”
logging:
driver: journald

At swarmagent i tried without result swarmagent:2375 and expose

on “sudo docker -H localhost:4000 info” was:

Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: swarm/1.2.5
Role: primary
Strategy: spread
Filters: health, port, containerslots, dependency, affinity, constraint
Nodes: 1
(unknown): 0.0.0.0:2375
└ ID:
└ Status: Pending
└ Containers: 0
└ Reserved CPUs: 0 / 0
└ Reserved Memory: 0 B / 0 B
└ Labels:
└ Error: Cannot connect to the Docker daemon. Is the docker daemon running on this host?
└ UpdatedAt: 2016-09-14T10:31:36Z
└ ServerVersion:
Plugins:
Volume:
Network:
Kernel Version: 3.18.34-20.el7.x86_64
Operating System: linux
Architecture: amd64
Number of Docker Hooks: 2
CPUs: 0
Total Memory: 0 B
Name: 0b981d4caa78
Registries:

OS: Centos 7
No firewals, SElinux disabled
docker version - 1.10.3

/etc/sysconfig/docker
OPTIONS=‘–log-driver=journald -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock’

can’t help me

What is right compose file to run swarm with one node locally?