Skip to content
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

Merged
merged 1 commit into from
Aug 10, 2014
Merged

fix for issue 7281 #7489

merged 1 commit into from
Aug 10, 2014

Conversation

duglin
Copy link
Contributor

@duglin duglin commented Aug 8, 2014

Signed-off-by: Doug Davis dug@us.ibm.com

@jamtur01
Copy link
Contributor

jamtur01 commented Aug 8, 2014

LGTM

@jamtur01
Copy link
Contributor

jamtur01 commented Aug 8, 2014

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
Copy link

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.

@ghost
Copy link

ghost commented Aug 9, 2014

LGTM - bar one minor issue.

add missing comma per O.S. Tezer's commment

Signed-off-by: Doug Davis <dug@us.ibm.com>
@duglin
Copy link
Contributor Author

duglin commented Aug 9, 2014

Added missing comma per ostezer's comment

jamtur01 added a commit that referenced this pull request Aug 10, 2014
@jamtur01 jamtur01 merged commit 9fa4bea into moby:master Aug 10, 2014
@duglin duglin deleted the 7281 branch August 11, 2014 18:45
@ORESoftware
Copy link

Doesn't this work too:

RUN /bin/bash -c ". $HOME/.oresoftware/bash/npm.registry.sh && npm install --loglevel=warn"

@sorenwacker
Copy link

It is a lot of overhead to run a command. Setting bash as default would save a lot of typing.

@thaJeztah
Copy link
Member

@soerendip you're commenting on a 7 year old pull request. Docker 1.12 and up (pull request: #22489) support a SHELL instruction in the Dockerfile, which allows you to specify the shell to use for RUN commands; for example:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants