老师,您好,我在manager上面创建了网络,然后创建mysql容器,没有问题。
但是当在创建wordpress容器的时候,就失败。
然后我在manager上ping mysql也是ping不通的。求指导。
[vagrant@swarm-manager ~]$ docker service ps mysql
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
o2rqvg37mi70 mysql.1 mysql:latest swarm-worker1 Running Running 7 minutes ago
[vagrant@swarm-manager ~]$ docker service ps wordpress
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
dry08zd5eq51 wordpress.1 wordpress:latest swarm-worker2 Running Running 17 seconds ago
yxivuadvqbpq _ wordpress.1 wordpress:latest swarm-worker2 Shutdown Failed 23 seconds ago "task: non-zero exit (1)"
xzs1t70ftxbh _ wordpress.1 wordpress:latest swarm-manager Shutdown Failed 2 minutes ago "task: non-zero exit (1)"
woswpi4kd6a5 _ wordpress.1 wordpress:latest swarm-manager Shutdown Failed 2 minutes ago "task: non-zero exit (1)"
piucm6stbtzx _ wordpress.1 wordpress:latest swarm-manager Shutdown Failed 3 minutes ago "task: non-zero exit (1)"
[vagrant@swarm-manager ~]$