Docker Community Forums

Share and learn in the Docker community.

Docker swarm with current state preparing and not starting the service


(Linuxananth1976) #1

I have below version in my system. Trying to implement swarm cluster with 3 centos 7.2 virtual box one manager and two worker nodes. I’m facing issue on docker swarm.
docker -v
Docker version 1.12.1, build 23cf638

[root@sm ~]# docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS
1ooacgpk7kk6cjaqrk6gsvi26 * sm Ready Active Leader
2y18r9w6yq6zepnvu80l4tvav sn02 Ready Active
di0cfj1gzojqlgudqix2nho93 sn01 Ready Active

[root@sm ~]# docker service create --name web -p 80:80 --replicas 1 nginx:latest
chrxz8ohmbx83hct8aygkicru

[root@sm ~]# docker service ps web
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR
1n51cnrspplqge0tt78ufv9a1 web.1 nginx:latest sm Running Preparing 14 seconds ago

[root@sm ~]# docker service ps web
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR
1n51cnrspplqge0tt78ufv9a1 web.1 nginx:latest sm Running Preparing 12 minutes ago

Always its showing preparing in CURRENT STATE. Tried with other images too even with busybox.

Any help on this please…


(Kart42) #2

Same here with ELK 6.2.1 images.

18.03.0-ce-mac59 (23608)
Channel: stable
d70d80d72f