Merge pull request #30329 from johndmulhausen/patch-2
Fixing formatting errors in Run refdoc Signed-off-by: Misty Stanley-Jones <misty@docker.com>
This commit is contained in:
parent
ad214d7a79
commit
dd05de1e6a
@ -1286,8 +1286,8 @@ to create the directory in the Dockerfile. For example:
|
|||||||
ARG <name>[=<default value>]
|
ARG <name>[=<default value>]
|
||||||
|
|
||||||
The `ARG` instruction defines a variable that users can pass at build-time to
|
The `ARG` instruction defines a variable that users can pass at build-time to
|
||||||
the builder with the `docker build` command using the `--build-arg
|
the builder with the `docker build` command using the `--build-arg <varname>=<value>`
|
||||||
<varname>=<value>` flag. If a user specifies a build argument that was not
|
flag. If a user specifies a build argument that was not
|
||||||
defined in the Dockerfile, the build outputs a warning.
|
defined in the Dockerfile, the build outputs a warning.
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -1375,7 +1375,7 @@ useful interactions between `ARG` and `ENV` instructions:
|
|||||||
```
|
```
|
||||||
|
|
||||||
Unlike an `ARG` instruction, `ENV` values are always persisted in the built
|
Unlike an `ARG` instruction, `ENV` values are always persisted in the built
|
||||||
image. Consider a docker build without the --build-arg flag:
|
image. Consider a docker build without the `--build-arg` flag:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ docker build Dockerfile
|
$ docker build Dockerfile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user