A Docker image is a read-only template containing application code, runtime, libraries, and dependencies. A Docker container is a running instance of an image.
Key differences:
# Image exists as a template
docker images
# Container is created and runs from image
docker run nginx