What does Docker run do?
25 June 2023 (Updated 25 June 2023)
In a nutshell
This is what happens when you run docker run <some-image>
:
- Image check: Docker checks if the image is available locally. If not, it pulls it from a remote registry such as Docker Hub.
- Create container: Docker creates a container using the specified image.
- Setup environment: Set up networking and environment variables.
- Execute container: The container’s entry point or image command determines what executable or script is run inside the container.
Tagged:
Docker
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment