Docker Image
Question
What is a Docker image?
Hint
Images are built from Dockerfiles and run as containers.
Explanation
A Docker image is a read-only template containing the application code, libraries, dependencies, and runtime. Images are built from a Dockerfile using docker build. Images are layered — each instruction in the Dockerfile creates a new layer. Images are stored in registries (Docker Hub, ECR, GCR). Run an image with docker run to create a container. Images are immutable — to change an image, build a new one. Use tags to version images (myapp:1.0, myapp:latest).
Related Resources
Related Lessons
- Docker Images
Learn images.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.