-
Notifications
You must be signed in to change notification settings - Fork 2k
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
#692 Updates builder.md to point out the fact that single-quotes will not unpack vars, resolves #692 #1467
base: master
Are you sure you want to change the base?
Conversation
Please sign your commits following these rules: $ git clone -b "692-label-single-quotes" [email protected]:TheHipbot/cli.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f Amending updates the existing PR. You DO NOT need to open a new one. |
059fc81
to
d447695
Compare
Codecov Report
@@ Coverage Diff @@
## master #1467 +/- ##
==========================================
- Coverage 55.14% 54.19% -0.96%
==========================================
Files 289 289
Lines 19371 19377 +6
==========================================
- Hits 10683 10502 -181
- Misses 7996 8199 +203
+ Partials 692 676 -16 |
resolves #692 |
docs/reference/builder.md
Outdated
@@ -738,6 +738,11 @@ To view an image's labels, use the `docker inspect` command. | |||
"other": "value3" | |||
}, | |||
|
|||
> **Note**: | |||
> When providing a `LABEL` in a Dockerfile, be sure to use double quotes and not single quotes. Particularly when you are | |||
> using string interpolation (e.g. `LABEL example="$env_var") single quotes will take the string as is without |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wondering though; why put quotes there in the first place? ie; this would work as well;
LABEL example=$ENV_VAR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fine by me, I updated the PR
…unpack variables Signed-off-by: Jeremy Chambers <[email protected]>
d447695
to
0255d84
Compare
carry docker/cli#1467 Signed-off-by: CrazyMax <[email protected]>
Carried by moby/buildkit#3241, can be closed. |
…unpack variables
- What I did
Updated the docs in builder.md
- How I did it
Edited the md files
- How to verify it
Wait for feedback
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)