1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/docs/swarm/swarm-tutorial/delete-service.md
Sven Dowideit bc033cb706 advisory can't be in the [menu] section
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2016-06-16 11:59:47 +00:00

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.

  1. 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.

  2. Run docker service remove helloworld to remove the helloworld service.

    $ docker service rm helloworld
    helloworld
    
  3. 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.