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
Post a Comment