paint-brush
How to Move Code into a Docker Containerby@hsheth2
24,268 reads
24,268 reads

How to Move Code into a Docker Container

by Harshal Sheth3mJanuary 14th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

<a href="https://www.docker.com/" target="_blank">Docker</a> provides two good options for moving your code into an image or container: <a href="https://docs.docker.com/storage/bind-mounts/" target="_blank">bind mounts</a> and the <a href="https://docs.docker.com/engine/reference/builder/#copy" target="_blank">Dockerfile </a><code class="markup--code markup--p-code"><a href="https://docs.docker.com/engine/reference/builder/#copy" target="_blank">COPY</a></code><a href="https://docs.docker.com/engine/reference/builder/#copy" target="_blank"> instruction</a>. In this post, I'll explain why images should always use the <code class="markup--code markup--p-code">COPY</code> instruction in production, and why it may be more convenient to use bind mounts in development.
featured image - How to Move Code into a Docker Container
Harshal Sheth HackerNoon profile picture
Harshal Sheth

Harshal Sheth

@hsheth2

L O A D I N G
. . . comments & more!

About Author

Harshal Sheth HackerNoon profile picture
Harshal Sheth@hsheth2

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite