mirror of https://github.com/docker/docs.git
Merge pull request #10472 from thaJeztah/reference_code_hints
update code-hints in engine reference
This commit is contained in:
commit
d34430b425
|
@ -717,7 +717,7 @@ examples: |-
|
||||||
specify an intermediate build stage by name as a final stage for the resulting
|
specify an intermediate build stage by name as a final stage for the resulting
|
||||||
image. Commands after the target stage will be skipped.
|
image. Commands after the target stage will be skipped.
|
||||||
|
|
||||||
```Dockerfile
|
```dockerfile
|
||||||
FROM debian AS build-env
|
FROM debian AS build-env
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -785,7 +785,7 @@ examples: |-
|
||||||
The example `Dockerfile` below uses a separate stage to collect the
|
The example `Dockerfile` below uses a separate stage to collect the
|
||||||
build-artifacts for exporting:
|
build-artifacts for exporting:
|
||||||
|
|
||||||
```Dockerfile
|
```dockerfile
|
||||||
FROM golang AS build-stage
|
FROM golang AS build-stage
|
||||||
RUN go get -u github.com/LK4D4/vndr
|
RUN go get -u github.com/LK4D4/vndr
|
||||||
|
|
||||||
|
@ -948,7 +948,7 @@ examples: |-
|
||||||
|
|
||||||
The following is an example of docker build with `--squash` argument
|
The following is an example of docker build with `--squash` argument
|
||||||
|
|
||||||
```Dockerfile
|
```dockerfile
|
||||||
FROM busybox
|
FROM busybox
|
||||||
RUN echo hello > /hello
|
RUN echo hello > /hello
|
||||||
RUN echo world >> /hello
|
RUN echo world >> /hello
|
||||||
|
|
|
@ -179,7 +179,7 @@ examples: |-
|
||||||
|
|
||||||
Digest can also be used in the `FROM` of a Dockerfile, for example:
|
Digest can also be used in the `FROM` of a Dockerfile, for example:
|
||||||
|
|
||||||
```Dockerfile
|
```dockerfile
|
||||||
FROM ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
|
FROM ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
|
||||||
MAINTAINER some maintainer <maintainer@example.com>
|
MAINTAINER some maintainer <maintainer@example.com>
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue