Docker service [service doesnt reply]


#1

Hi. I thanks if anyone helps me!

After I create my docker swarm and services, my service is not accessible!
See the snapshot below.One strange thing is REPLICAS = 0/1.

[email protected]:~$ docker service ls
ID NAME MODE REPLICAS IMAGE PORTS
1996xvb89lsr wordpress replicated 0/1 wordpress:latest *:8000->80/tcp
fgtzn7y4qchd mysql replicated 0/1 mysql:5.7

[email protected]:~$ curl localhost
curl: (7) Failed to connect to localhost port 80: Connection refused

[email protected]:~$ curl localhost 8000
curl: (7) Failed to connect to localhost port 80: Connection refused
curl: (7) Failed to connect to localhost port 80: Connection refused

More information:
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS
er190pj7a6sj6b8j6dhuskilo * swarm-master Ready Active Leader
hihyt6x6wjx2sfhm5tz61t2so swarm-node02 Ready Active
peszbbp40jd9bjmf1pzixqzpq swarm-node01 Ready Active


#2

To declare:
I pulled the images with command docker pull