Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Dockerfile documentation is missing information on variable replacement #19923

Open
1 task done
SetTrend opened this issue Apr 30, 2024 · 0 comments
Open
1 task done
Labels
status/triage Needs triage

Comments

@SetTrend
Copy link

SetTrend commented Apr 30, 2024

Is this a docs issue?

  • My issue is about the documentation content or website

Type of issue

I can't find what I'm looking for

Description

At this time, it's hard if even impossible to tell where variable replacement is taking place: Is it in the Docker engine or is it in the container's shell?

I'm working with a Windows container here, and the default Windows shell is cmd. For variable replacement to occur in this shell, I need to write %varName% instead of $varName.

The Dockerfile documentation doesn't provide information on which type of variable replacement syntax applies for the different Dockerfile instructions. So, it's a continuous, cumbersome try-and-error loop for me to finally reach the correct syntax.

Location

https://docs.docker.com/reference/dockerfile/

Suggestion

Please add a corresponding note to each of the commands what kind of variable replacement is taking place. (I.e., Docker engine syntax or shell syntax.)

@SetTrend SetTrend added the status/triage Needs triage label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/triage Needs triage
Projects
None yet
Development

No branches or pull requests

1 participant