---
title: "Discussion on \"Docker: Key differences between ENTRYPOINT and CMD\" | Hashnode"
description: "Discussion on \"Docker: Key differences between ENTRYPOINT and CMD\". When working with Docker, understanding the differences between ENTRYPOINT and CMD is crucial for defining the behavior of your containers. Both specify what command should be run within the container, but they have distinct roles and use cases.\nCMD:..."
url: "https://hashnode.com/posts/docker-key-differences-between-entrypoint-and-cmd/66977f1f0773fadb5b09dbcb"
---

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

Discussion

# [Docker: Key differences between ENTRYPOINT and CMD](https://shouryachawla.hashnode.dev/docker-key-differences-between-entrypoint-and-cmd?utm_source=hashnode&utm_medium=feed)

When working with Docker, understanding the differences between ENTRYPOINT and CMD is crucial for defining the behavior of your containers. Both specify what command should be run within the container, but they have distinct roles and use cases. CMD:...

Jul 15, 2024 · 1 min read · shouryachawla.hashnode.dev  
Read the article

-   [#docker](https://hashnode.com/tag/docker)
-   [#docker-command](https://hashnode.com/tag/docker-command)
-   [#devops](https://hashnode.com/tag/devops)
-   [#devops-articles](https://hashnode.com/tag/devops-articles)
-   [#cmd-vs-entrypoint](https://hashnode.com/tag/cmd-vs-entrypoint)

## Written by

[Shourya Chawla](https://hashnode.com/@shouryachawla27)

@shouryachawla27 · India

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

DevOps and Cloud Enthusiast

A passionate DevOps and cloud enthusiast with a knack for automating processes, optimizing cloud infrastructure, and enhancing CI/CD pipelines. I love diving into new technologies, solving complex problems, and sharing my knowledge with the community. I am dedicated to simplifying complex DevOps concepts and empowering fellow developers.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
