---
title: "Discussion on \"DOCKER: The ENTRYPOINT and CMD\" | Hashnode"
description: "Discussion on \"DOCKER: The ENTRYPOINT and CMD\". In a Dockerfile, the use of ENTRYPOINT and CMD is crucial in defining the way a container behaves. However, it does confuse a lot of us regarding the usage, best practices, and key considerations when using these instructions.\nENTRYPOINT vs CMD:\nENTR..."
url: "https://hashnode.com/posts/docker-the-entrypoint-and-cmd/656729c6ff3ed9e2ce4cc044"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [DOCKER: The ENTRYPOINT and CMD](https://tech.anupamm.com/docker-the-entrypoint-and-cmd?utm_source=hashnode&utm_medium=feed)

In a Dockerfile, the use of ENTRYPOINT and CMD is crucial in defining the way a container behaves. However, it does confuse a lot of us regarding the usage, best practices, and key considerations when using these instructions. ENTRYPOINT vs CMD: ENTR...

May 17, 2018 · 3 min read · tech.anupamm.com  
Updated Nov 9, 2024  
Read the article

-   [#docker](https://hashnode.com/tag/docker)
-   [#entrypoint](https://hashnode.com/tag/entrypoint)
-   [#cmd](https://hashnode.com/tag/cmd)
-   [#containers](https://hashnode.com/tag/containers)
-   [#dockerfile](https://hashnode.com/tag/dockerfile)

## Written by

[Anupam Majhi](https://hashnode.com/@anupammajhi)

@anupammajhi · Bangalore, India

  
[View profile](https://hashnode.com/@anupammajhi)

Tech Lead | DevOps, Cloud, FullStack, Data Science, Machine Learning, AI

A Tech Lead by profession, a Data Enthusiast and a forever learner. Experienced in DevOps, Cloud, FullStack Development, Data Science, Machine Learning and AI.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
