-
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
fix for issue 7281 #7489
fix for issue 7281 #7489
Conversation
LGTM |
Ping @SvenDowideit @fredlf @ostezer |
@@ -164,6 +164,11 @@ any point in an image's history, much like source control. | |||
The *exec* form makes it possible to avoid shell string munging, and to `RUN` | |||
commands using a base image that does not contain `/bin/sh`. | |||
|
|||
> **Note**: | |||
> To use a different shell, other than '/bin/sh', use the *exec* form | |||
> passing in the desired shell. For example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shall have a comma after "For example" here.
LGTM - bar one minor issue. |
add missing comma per O.S. Tezer's commment Signed-off-by: Doug Davis <dug@us.ibm.com>
Added missing comma per ostezer's comment |
Doesn't this work too:
|
It is a lot of overhead to run a command. Setting bash as default would save a lot of typing. |
@soerendip you're commenting on a 7 year old pull request. Docker 1.12 and up (pull request: #22489) support a FROM ubuntu
SHELL ["/bin/bash", "-c"]
RUN help | head -1 docker build -t foo --no-cache --progress=plain
...
#5 [2/2] RUN help | head -1
#5 sha256:07488e76fa7474eb7789fdc6bf1e9f5575917d00867c2e8b7314bdeea67be8cf
#5 0.336 GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
#5 DONE 0.5s |
Signed-off-by: Doug Davis dug@us.ibm.com