Services and User Management
A container named web01 is still running and must be deleted immediately with a single command. The image it was created from must be kept. Which command does this?
Show the answer
Correct answerC. docker rm -f web01
docker rm -f force-removes a container even while it is running, and it leaves the image in place. A plain docker rm refuses to delete a running container, so it fails here, and docker rmi targets images, not containers.