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
why docker run command under /bin/sh????? #9861
Comments
@lichuan command is image entity, not docker. So, all questions to image authors(I don't know what image do you use). |
for example when i write the below to dockerfile: RUN echo -e "passwd\npasswd\n" | smbpasswd -a -s when I build this dockerfile, error will happen. |
if default shell is /bin/bash, there is no error. so why docker RUN command under /bin/sh???? |
@lichuan try `RUN ["/bin/bash", "-c", ...] |
if docker RUN command under /bin/bash defaultly, the dockerfile can be very simple, RUN ["/bin/bash", "-c", ...] is ugly...... |
@lichuan |
As a specific example - the busybox image doesn't have bash - the boot2docker iso doesn't have bash either |
The builder documentation already states that I'll close this issue since the only reason for keeping it open was to make the needed changes to the docs. |
add the first line to your
it works in docker |
why docker run command with default /bin/sh, why? why? why? , I think /bin/bash is good than /bin/sh, if you run under /bin/sh, some command will produce error. please tell me why docker run command with /bin/sh instead of /bin/bash??????
The text was updated successfully, but these errors were encountered: