Copy-ready commanddocker run — Basic Usage
docker run -d --name web01 -p 8080:80 nginx:latestRequirements and permissions
- Requirements
- Docker Engine, Docker Compose, or kubectl
- Permissions
- Container or cluster permissions vary
- Last reviewed
- 2026-07-31
Examples
Basic Usage
Use docker run for a standard administrative task.
docker run -d --name web01 -p 8080:80 nginx:latestOriginal command
Create and run a container.
docker run -d --name web01 -p 8080:80 nginx:latestCommon errors
Command not found
Confirm Docker Engine, Docker Compose, or kubectl is installed and available in your current shell.