Introduction
Sometimes you want to quickly start a program inside a container without setting up complex files. The docker run command lets you do this by creating and starting a container from an image in one step.
When you want to test a new application image quickly without writing configuration files
When you need to run a simple web server on your local machine for development
When you want to run a database container temporarily for testing
When you want to try out a command-line tool inside a container without installing it on your computer
When you want to expose a container's service port to your local machine to access it via a browser