Process Flow - CMD instruction for default command
Dockerfile with CMD
Build Docker Image
Run Container
Check if CMD is overridden?
Yes→Run overridden command
No
Run CMD default command
Container runs with CMD output
This flow shows how Docker uses the CMD instruction as the default command when running a container unless overridden.