Linux入门教程:管理swarm(9) – swarm实践 – 删除服务, 2.执行docke


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

$ docker service rm helloworld   helloworld

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

$ docker service inspect helloworld [] Error: no such service: helloworld

相关内容