mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
commit
9fa4bea03b
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
> `RUN ["/bin/bash", "-c", "echo hello"]`
|
||||
|
||||
The cache for `RUN` instructions isn't invalidated automatically during
|
||||
the next build. The cache for an instruction like `RUN apt-get
|
||||
dist-upgrade -y` will be reused during the next build. The cache for
|
||||
|
|
Loading…
Add table
Reference in a new issue