docs icon indicating copy to clipboard operation
docs copied to clipboard

A typo in an example provided

Open RockmanR opened this issue 3 years ago • 2 comments

Is this a docs issue?

  • [X] My issue is about the documentation content or website

Type of issue

Information is incorrect

Description

In the "Example" box, under the "Environment replacement" section. The following:

FROM busybox ENV FOO=/bar WORKDIR ${FOO} # WORKDIR /bar ADD . $FOO # ADD . /bar COPY $FOO /quux # COPY $FOO /quux

I believe the fifth line should be: COPY $FOO /quux # COPY ./bar /quux

As it was explained in the document, the "$FOO" should have been replaced by "./bar".

Location

https://docs.docker.com/engine/reference/builder/

Suggestion

as mentioned in the description.

RockmanR avatar Nov 30 '23 12:11 RockmanR

The example is correct. It shows an escaped variable.

dvdksn avatar Nov 30 '23 12:11 dvdksn

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

docker-robot avatar Dec 30 '23 03:12 docker-robot