By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
Pull and manage Docker images using the docker pull and docker images commands. docker images
docker pull
docker images
docker pull ubuntu:latest
docker rmi ubuntu:latest
docker container prune
Purpose: Pull a specific version of the Ubuntu image.Command: docker pull ubuntu:18.04 Flags: ubuntu is the repository name, 18.04 is the tag.
docker pull ubuntu:18.04
ubuntu
18.04
Purpose: Pull the official Ubuntu image for arm64 architecture.Command: docker pull ubuntu:latest-arm64 Flags: ubuntu is the repository name, latest-arm64 is the tag.
docker pull ubuntu:latest-arm64
latest-arm64
Purpose: Pull the official Ubuntu image with a specific digest.Command: docker pull ubuntu@sha256:1234567890abcdef Flags: ubuntu is the repository name, sha256:1234567890abcdef is the digest.
docker pull ubuntu@sha256:1234567890abcdef
sha256:1234567890abcdef
Error message: Error: No such image: ubuntu:latest Why it happens: The image does not exist in the Docker registry.Fix: docker pull ubuntu:latest (try a different tag or repository).
Error: No such image: ubuntu:latest
Error message: Error: Error pulling image: Get https://...: dial tcp: i/o timeout Why it happens: Network connectivity issue or Docker registry unavailability.Fix: docker pull ubuntu:latest (try again after resolving the issue).
Error: Error pulling image: Get https://...: dial tcp: i/o timeout
Error message: Error: No such image: ubuntu:latest Why it happens: The image does not exist in the Docker registry.Fix: docker rmi -f ubuntu:latest (force deletion).
docker rmi -f ubuntu:latest
Situation: You want to check if the official Ubuntu image exists.Command: docker images ubuntu:latest Correct response: List of images with the Ubuntu repository name.
docker images ubuntu:latest
Situation: You want to check the progress of the image pull.Command: docker ps -a Correct response: List of containers with the pulling image.
docker ps -a
Situation: You want to check the digest of the pulled image.Command: docker inspect ubuntu:latest Correct response: Image metadata with the digest.
docker inspect ubuntu:latest
docker rmi
docker inspect
docker version
docker rmi -f
docker container prune -f
docker system prune -f
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.