A Docker image is a lightweight, standalone, executable package that includes everything needed to run a piece of software, including the code, a runtime, libraries, environment variables, and config files. In short, Docker images are templates that are used to create Docker containers. They are created with the “build” command and are used as the source of a Docker container. Images are stored in a Docker registry such as Docker Hub.