CMD vs ENTRYPOINT?

IntermediateConceptDocker
Answer

ENTRYPOINT is the fixed executable. CMD gives default arguments that docker run image <args> replaces. Together: ENTRYPOINT ["python","app.py"] with CMD ["--port","8000"].

All Real-World Interview questions Roadmap: Interview readiness

More on Docker