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