---
title: "Discussion on \"Why ADD is preferred than COPY in Dockerfile ?\" | Hashnode"
description: "Discussion on \"Why ADD is preferred than COPY in Dockerfile ?\". Doubt on Best Practices:\nWhile i was reading on the best practices of writing a Dockerfile, its mentioned that COPY is preferred than ADD. Eventhough it performs same operations as COPY.\nSolution:\nThe COPY and ADD commands in Docker are both used to ..."
url: "https://hashnode.com/posts/why-add-is-preferred-than-copy-in-dockerfile/65675cfea205bef1330ee05d"
---

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

Discussion

# [Why ADD is preferred than COPY in Dockerfile ?](https://parottasalna.hashnode.dev/why-add-is-preferred-than-copy-in-dockerfile?utm_source=hashnode&utm_medium=feed)

Doubt on Best Practices: While i was reading on the best practices of writing a Dockerfile, its mentioned that COPY is preferred than ADD. Eventhough it performs same operations as COPY. Solution: The COPY and ADD commands in Docker are both used to ...

Nov 29, 2023 · 1 min read · parottasalna.hashnode.dev  
Read the article

-   [#docker-add](https://hashnode.com/tag/docker-add)
-   [#docker-copy](https://hashnode.com/tag/docker-copy)
-   [#docker](https://hashnode.com/tag/docker)
-   [#devops](https://hashnode.com/tag/devops)
-   [#developer](https://hashnode.com/tag/developer)
-   [#development](https://hashnode.com/tag/development)
-   [#fullstackdeveloper](https://hashnode.com/tag/fullstackdeveloper)
-   [#iamfullstackdeveloper](https://hashnode.com/tag/iamfullstackdeveloper)
-   [#syedjafer](https://hashnode.com/tag/syedjafer)

## Written by

[Syed Jafer K](https://hashnode.com/@iamsyedjafer)

@iamsyedjafer · Chennai, India

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

Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
