November 2017
Intermediate to advanced
298 pages
7h 10m
English
As with any service that we are finished with, we need to make sure that we clean up any resources we have used up so far. In the case of Swarm, we should probably remove our service and destroy our cluster until we need it again. You can do both of those things using docker service rm and docker swarm leave:
$ docker service lsID NAME MODE REPLICAS IMAGE PORTSz0z90wgylcpf simple-server replicated 3/3 simple_server *:8000->8000/tcp$ docker service rm simple-serversimple-server$ docker service lsID NAME MODE REPLICAS IMAGE PORTS$ docker swarm leave --forceNode left the swarm.
Read now
Unlock full access