Signed-off-by: Charles Smith <charles.smith@docker.com> Upstream-commit: 7b0c3066e30d721fb9efbac74e9675e1baeb019a Component: engine
1.2 KiB
1.2 KiB
Delete the service running on the Swarm
The remaining steps in the tutorial don't use the helloworld service, so now
you can delete the service from the Swarm.
-
If you haven't already, open a terminal and ssh into the machine where you run your manager node. For example, the tutorial uses a machine named
manager1. -
Run
docker service remove helloworldto remove thehelloworldservice.$ docker service rm helloworld helloworld -
Run
docker service inspect <SERVICE-ID>to veriy that Swarm removed the service. The CLI returns a message that the service is not found:$ docker service inspect helloworld [] Error: no such service or task: helloworld
What's next?
In the next step of the tutorial, you set up a new service and and apply a rolling update.