-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerfile RUN don't support multiple lines #29170
Comments
I suspect you have a blank line in your docker 1.13.0-rc3 has been released, and a new beta will be released soon; however, you should be able to fix this by removing the blank line. |
Try using
|
@JamesNyamu that will only work if a custom |
Have you got a space after any of the |
@justincormack I got no space after |
Also make sure you have no line comments inside the RUN statements |
Running For instance:
(whitespace after |
right, this was basically a bug before - trailing whitespace after a \ should invalidate the semantics of \ being a continuation char. |
@rupertqin can you upload your |
This should be fixed in 1.13.0-rc6. We reverted this change for now, so that we can work on a deprecation period (i.e., warn if a Dockerfile contains trailing whitespace), see #30010 |
Dockerfile RUN don't support multiple lines
ENV: Mac OS
Docker Version: 1.13.0
RUN apt-get update && apt-get upgrade -y \ && apt-get install -y curl wget git make sudo \ && wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb \ && dpkg -i erlang-solutions_1.0_all.deb \ && apt-get update \ && rm erlang-solutions_1.0_all.deb \
A
Dockerfile
RUN
command contain multiple lines as above, when I build an image, an error jump out:Then I switched docker version to 1.12.3, it work well.
Output of
docker version
:Output of
docker info
:The text was updated successfully, but these errors were encountered: