Docker run
docker run is a Docker command that creates and starts a container from an image, with optional runtime configuration.
Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform
docker run is a Docker command that creates and starts a container from a specified image.
- How it is used
- Runs a packaged microservice locally before publication and tests its published image afterward.
- How deep it goes
- Explains a runnable command, port mapping, environment variables, detached mode, container IDs, logs, and the local-image cache.
- Examples
- Starts a video-streaming service on port 3000 and repeats the test with an Azure registry image.
- What you can do after
- Operate/configure it to start a microservice, inspect its logs, and verify that a published image can be pulled and run.
Road to Kubernetes
docker run is a Docker command that creates and starts a container from a specified container image.
- How it is used
- Runs container images locally or on a provisioned virtual machine as a practical deployment step.
- How deep it goes
- Covers image pulling, port publishing, interactive shells, detached execution, environment variables, inspection, logs, and stopping.
- Examples
- Uses NGINX, Postgres, custom NGINX, Python, and Node.js images with mapped ports, shells, names, and environment variables.
- What you can do after
- Operate containers by pulling, launching, exposing, inspecting, entering, logging, stopping, and configuring them with command-line flags.
Learn Docker in a Month of Lunches, Second Edition
docker run is a Docker CLI command that creates and starts a container from an image.
- How it is used
- Runs packaged tools and scripts or opens an interactive terminal inside a container.
- How deep it goes
- Explains image pulling, interactive flags, terminal access, and basic verification without detailing Docker internals.
- Examples
- Uses diamol/base:2e with hostname, date, docker container ls, and docker container logs.
- What you can do after
- Apply it via the Docker CLI to start an interactive container and inspect its running environment.
Read how Learn Docker in a Month of Lunches, Second Edition explains docker run →
Data Pipelines with Apache Airflow, Second Edition
docker run is a Docker CLI command that creates and starts a container from an image.
- How it is used
- Runs containerized data tasks and supplies task arguments, mounted storage, and cleanup behavior.
- How deep it goes
- Explains image execution, argument passing, volume mounts, and container cleanup without detailing Docker internals.
- Examples
- Uses weather output persistence and MovieLens ratings CLI help as concrete execution examples.
- What you can do after
- Operate/configure Docker containers for task execution, file persistence, testing, and cleanup.
Read how Data Pipelines with Apache Airflow, Second Edition explains docker run →
Related concepts
- cd commandincludes · The cd command changes a command-line shell’s current working directory.
- pwdincludes · pwd is a command-line utility that prints the path of the current working directory.
- lsincludes · ls is a command-line utility that lists files and directories in a filesystem directory.
- Terminalused by · Terminal is the macOS application for accessing a command-line interface.
- container imageuses · A container image is a packaged filesystem and configuration artifact from which a container can be created and run.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



