Copying and pasting from the Mock Exam -2, question as well as answer as per the mock exam
Q> Which command is used to delete the stopped containers?
Ans> docker container prune,docker container rm $(docker container ls -aq)
How can it be
docker ls -aq ==> gives the ID for the running containers as well, so the above option/choice of answer is not correct
Thanks
Joseph John