From c0b39944b3c16bf3a22174c02fb6d8fff7365418 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Wed, 27 Mar 2024 11:26:14 +0100 Subject: [PATCH] docs: call out ONBUILD COPY --from as unsupported Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- frontend/dockerfile/docs/reference.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/dockerfile/docs/reference.md b/frontend/dockerfile/docs/reference.md index 1028bc00b6ebd..589dc7661f6ba 100644 --- a/frontend/dockerfile/docs/reference.md +++ b/frontend/dockerfile/docs/reference.md @@ -1472,6 +1472,10 @@ By default, the `COPY` instruction copies files from the build context. The COPY [--from=] ... ``` +> **Note** +> +> `ONBUILD COPY --from` is not supported. + To copy from a build stage in a [multi-stage build](https://docs.docker.com/build/building/multi-stage/), specify the name of the stage you want to copy from. You specify stage names