Join our Discord Server
Security Scanning

Step 5 – Cleaning Up

Estimated reading: 1 minute 103 views

 

In this step you will remove all images and containers on the host and clean up any other artifacts created in this lab.

  1. Remove all images on the host.

    This command will remove all images on your Docker host. Only perform this step if you know you will not use these images again.

    $ docker image rm $(docker image ls -aq)
    <Snip>
    
  2. Remove all containers on the host.

    This command will remove all containers on your Docker host. Only perform this step if you know you know you do not need any of the containers running on your system.

    $ docker container rm $(docker container ls -q) -f
    <Snip>
    
  3. Log on to Docker Hub and delete the repository that you created for this demo.

    click on the repo > click on the Settings tabe of the repo > click Delete and follow the instructions.

Share this Doc

Step 5 – Cleaning Up

Or copy link

CONTENTS
Join our Discord Server