Docker build ADD vs RUN curl -


if run dockerfile have command like

run curl -o file.txt http://x.x.x.x/path/to/file/file.txt 

the build works, whereas if use

add http://x.x.x.x/path/to/file/file.txt file.txt 

the build fails , complains about

got http status code >= 400: 503 service unavailable 

is there add i'm not understanding?

edit file accessible through docker host.

add executed in docker host.

run executed inside container.

is http://x.x.x.x/path/to/file/file.txt accessible outside of docker container?


Comments

Popular posts from this blog

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World