Tuesday, February 16, 2021

Difference between COPY and volume in Docker

Difference between COPY and volume in Docker:

Volume creates a mount point that the Docker host can interact with.
COPY too can accomplish that but it does that during build time.

With Volume, you can keep interacting with the contents on the host machine but COPY is just one time activity which is used during the build time.

No comments:

Post a Comment

Suomen Kieli (Taalla, Tuolla, Siella)

In Finnish, location-based words like "täällä," "tuolla," and "siellä" help describe where something is rela...