Red Hat OpenShift Developer II DO288 Practice Exam

Access More Questions
Which command removes a local image?
Correct Answer:
sudo podman rmi devops/mysql:snapshot
Explanation:
Removing a local image is done with the rmi command, which stands for remove image. The tag command would just create or update a tag for an existing image, not delete it. OpenShift’s oc rmi isn’t the standard way to remove a local image, and docker rmi would apply only if you’re using Docker instead of Podman. Using podman rmi devops/mysql:snapshot removes the specified image from the local image store (assuming no containers are using it, or you use a force option). So the command shown is the correct way to remove a local image.

Access more questions from this quiz

Continue to Red Hat OpenShift Developer II DO288 Practice Exam for more practice questions and the full quiz experience.

Access More Questions