docker run creates and starts a container from an image. It lets you package tools and scripts in an image, then run them without asking another person to install the toolchain. section 2.3
Use interactive flags when you need a terminal inside the container:
- Let Docker pull the image if necessary, then use the container’s command prompt. section 2.3
Connect and inspect
After starting the interactive container, hostname displays its container environment and date displays its current date. docker container ls shows the running container, while docker container logs records terminal output.



