Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 5bcd2b4

Browse files
committed
docs: fix links, and minor markdown touch-ups
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 116c9a1f591fa5f99c20fb218041042e7e3a1542) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 81909d70f0ec11b3b29e0b9c6ea8253f496ffca3 Component: cli
1 parent a8a8c28 commit 5bcd2b4

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

components/cli/docs/reference/builder.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Dockerfile.
5454
>
5555
> Do not use your root directory, `/`, as the `PATH` as it causes the build to
5656
> transfer the entire contents of your hard drive to the Docker daemon.
57+
{:.warning}
5758

5859
To use a file in the build context, the `Dockerfile` refers to the file specified
5960
in an instruction, for example, a `COPY` instruction. To increase the build's
@@ -175,9 +176,9 @@ Docker runs instructions in a `Dockerfile` in order. A `Dockerfile` **must
175176
begin with a \`FROM\` instruction**. This may be after [parser
176177
directives](#parser-directives), [comments](#format), and globally scoped
177178
[ARGs](#arg). The `FROM` instruction specifies the [*Parent
178-
Image*](glossary.md#parent-image) from which you are building. `FROM`
179-
may only be preceded by one or more `ARG` instructions, which declare arguments
180-
that are used in `FROM` lines in the `Dockerfile`.
179+
Image*](https://docs.docker.com/glossary/#parent_image) from which you are
180+
building. `FROM` may only be preceded by one or more `ARG` instructions, which
181+
declare arguments that are used in `FROM` lines in the `Dockerfile`.
181182

182183
Docker treats lines that *begin* with `#` as a comment, unless the line is
183184
a valid [parser directive](#parser-directives). A `#` marker anywhere
@@ -1758,6 +1759,7 @@ ARG buildno
17581759
>
17591760
> Refer to the ["build images with BuildKit"](https://docs.docker.com/develop/develop-images/build_enhancements/#new-docker-build-secret-information)
17601761
> section to learn about secure ways to use secrets when building images.
1762+
{:.warning}
17611763

17621764
### Default values
17631765

@@ -2277,7 +2279,8 @@ This feature is only available when using the [BuildKit](#buildkit) backend.
22772279

22782280
Docker build supports experimental features like cache mounts, build secrets and
22792281
ssh forwarding that are enabled by using an external implementation of the
2280-
builder with a syntax directive. To learn about these features, [refer to the documentation in BuildKit repository](https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/experimental.md).
2282+
builder with a syntax directive. To learn about these features,
2283+
[refer to the documentation in BuildKit repository](https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/experimental.md).
22812284

22822285
## Dockerfile examples
22832286

components/cli/docs/reference/run.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The basic `docker run` command takes this form:
2929

3030
$ docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...]
3131

32-
The `docker run` command must specify an [*IMAGE*](glossary.md#image)
32+
The `docker run` command must specify an [*IMAGE*](https://docs.docker.com/glossary/#image)
3333
to derive the container from. An image developer can define image
3434
defaults related to:
3535

@@ -45,8 +45,8 @@ operator's ability to override image and Docker runtime defaults is why
4545
[*run*](commandline/run.md) has more options than any
4646
other `docker` command.
4747

48-
To learn how to interpret the types of `[OPTIONS]`, see [*Option
49-
types*](commandline/cli.md#option-types).
48+
To learn how to interpret the types of `[OPTIONS]`, see
49+
[*Option types*](commandline/cli.md#option-types).
5050

5151
> **Note**
5252
>

0 commit comments

Comments
 (0)