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

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -