Hands-on task
This task is step 5 of the course “Docker from scratch”
Remove containers
Clean things up:
- Remove the containers
old-web(it's still running),test-1andtest-2. Thedbcontainer is needed — it must stay and keep running. - Start a container
scratchin the background from thebusybox:1.36image with the commandsleep 3600so that it removes itself once stopped. You don't need to stop it — leave it running.
What you'll practise:
- docker rm
- docker rm -f
- docker run --rm