Q. Which Docker command is used to stop and remove all containers?
β
Correct Answer: (A)
docker rm -f $(docker ps -a -q)
Explanation: 'docker rm -f $(docker ps -a -q)' stops and removes all containers on the system.