Combine pipelines.
In real life you often need to nuke all containers from a
session. Pattern:
docker stop $(docker ps -q)
docker rm $(docker ps -aq)
The simulator parses arguments by name, so just walk through the steps:
TASK
----
Run:
docker run -d --name a nginx
docker run -d --name b nginx
docker stop a b
docker rm a b
docker ps -a
Pass when the final listing is empty (no "a" or "b" line).
Sign in to save your code and track progress across devices.