Hands-on task
This task is step 8 of the course “Docker: everyday work”
Cleanup: remove the clutter, keep what's needed
The server is cluttered with containers. Only three are needed:
webandapi, running;db, stopped — it was stopped for maintenance: don't start it and don't remove it.
Remove all the other containers — both running and stopped. Don't recreate the three you need.
What you'll practise:
- docker rm
- docker container prune
- docker ps --filter