Join our Discord Server
Docker Network Security

Step 4. Cleaning Up

Estimated reading: 1 minute 71 views

In this step you will clean-up the service and networks created in this lab.

Execute all of the following commands from node1 or another Swarm manager node.

  1. Remove the service you created in Step 3

    $ docker service rm service1
    service1
    

    This will also remove the net2 network from all worker nodes in the Swarm.

  2. Remove the net1 and net2 networks

    $ docker network rm net1 net2
    net1
    net2
    

    Congratulations. You’ve completed this quick Docker Network Security lab. You’ve even cleaned up!

Share this Doc

Step 4. Cleaning Up

Or copy link

CONTENTS
Join our Discord Server