管理swarm(9) – swarm实践 – 删除服务

1.登录manager1机器。
2.执行docker service rm helloworld来删除helloworld服务。

  1. $ docker service rm helloworld
  2.  
  3. helloworld

3.执行docker service inspect 命令来验证swarm管理器是否已经把服务删除了。CLI会返回提示服务不存在:

  1. $ docker service inspect helloworld
  2. []
  3. Error: no such service: helloworld
标签:Swarm 发布于:2019-11-20 08:54:38