| title | Cleanup Resources |
|---|---|
| nextpage | ../session2 |
{% include nav.html %}
docker ps -a
Note the names of any remaining containers
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cd048ee5861a my-mysql "docker-entrypoint.s…" 2 hours ago Up 2 hours 3306/tcp, 33060/tcp mydb
docker stop mydb
If the containers were not started with --rm, then run the following to remove them
docker rm mydb
docker network ls
Look for mynet.
NETWORK ID NAME DRIVER SCOPE
71e8bf90299 mynet bridge local
If mynet exists, delete it
docker network rm mynet
{% include next.html %}