Skip to content

Commit

Permalink
dockerfile: update image refs
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
  • Loading branch information
tonistiigi committed Nov 8, 2018
1 parent c3a857e commit 9d3426d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/dockerfile/docs/experimental.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ You need to use `docker build` CLI instead of `buildctl` CLI mentioned in this d
See [the `docker build` document](https://docs.docker.com/engine/reference/commandline/build/) for the usage.

## Use experimental Dockerfile frontend
The features mentioned in this document are experimentally available as [`docker/dockerfile-upstream:experimental`](https://hub.docker.com/r/docker/dockerfile-upstream/tags/) image.
The features mentioned in this document are experimentally available as [`docker/dockerfile:experimental`](https://hub.docker.com/r/docker/dockerfile/tags/) image.

To use the experimental features, the first line of your Dockerfile needs to be `# syntax=docker/dockerfile-upstream:experimental`.
To use the experimental features, the first line of your Dockerfile needs to be `# syntax=docker/dockerfile:experimental`.
As the experimental syntaxes may change in future revisions, you may want to pin the image to a specific revision.

See also [#528](https://github.com/moby/buildkit/issues/528) for further information about planned `docker/dockerfile` releases.
Expand Down Expand Up @@ -44,7 +44,7 @@ This mount type allows the build container to cache directories for compilers an
#### Example: cache Go packages

```dockerfile
# syntax = docker/dockerfile-upstream:experimental
# syntax = docker/dockerfile:experimental
FROM golang
...
RUN --mount=type=cache,target=/root/.cache/go-build go build ...
Expand All @@ -53,7 +53,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build go build ...
#### Example: cache apt packages

```dockerfile
# syntax = docker/dockerfile-upstream:experimental
# syntax = docker/dockerfile:experimental
FROM ubuntu
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
Expand Down Expand Up @@ -83,7 +83,7 @@ This mount type allows the build container to access secure files such as privat
#### Example: access to S3

```dockerfile
# syntax = docker/dockerfile-upstream:experimental
# syntax = docker/dockerfile:experimental
FROM python:3
RUN pip install awscli
RUN --mount=type=secret,id=aws,target=/root/.aws/credentials aws s3 cp s3://... ...
Expand All @@ -108,7 +108,7 @@ This mount type allows the build container to access SSH keys via SSH agents, wi
#### Example: access to Gitlab

```dockerfile
# syntax = docker/dockerfile-upstream:experimental
# syntax = docker/dockerfile:experimental
FROM alpine
RUN apk add --no-cache openssh-client
RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
Expand Down

0 comments on commit 9d3426d

Please sign in to comment.