assorted dockerfile docs issues#6582
Conversation
e756e8c to
2f6075d
Compare
|
Should probably remove the |
Each issue should be prefixed with |
I think GitHub doesn't look at commit message to close related issue but PR description. |
|
it looks at both 😅 |
From the UI seems it only closes one: docker/docs#14233
|
…lacement
Add documentation for the `${variable-word}` and `${variable+word}`
modifiers which differ from their colon counterparts (`${variable:-word}`
and `${variable:+word}`) in that they only test whether the variable is
unset, rather than unset or empty.
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
In multi-stage builds, labels from intermediate stages referenced via COPY --from or RUN --mount=from= are not included in the final output image. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
The FROM instruction description mentioned that a named stage can be referenced in subsequent FROM instructions, but lacked a concrete example demonstrating this common multi-stage pattern. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
STOPSIGNAL only affects the signal sent by docker stop (and the Docker daemon). Keyboard shortcuts like Ctrl+C send SIGINT directly, independent of the STOPSIGNAL setting. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
The previous text said "use either form of CMD" which is technically true but misleading. When using exec ENTRYPOINT, shell-form CMD wraps the command in /bin/sh -c, which means ENTRYPOINT receives a shell invocation rather than the bare arguments. Exec form CMD is the expected pairing. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Replace "prevents CMD command line arguments from being used" with "ignores CMD and docker run command line arguments", which more accurately describes the behavior: the arguments are not absent, they just aren't forwarded to the command inside /bin/sh -c. Also align with the wording used in the Shell form ENTRYPOINT example section further down. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
The terse note "Written data will be discarded" was unexplained. Expand it to clarify that writes are discarded when the RUN instruction completes and are not committed to the image layer. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
The --parents section only showed simple wildcard examples. Add an example demonstrating the ** glob pattern, which recursively matches files across directory levels and is particularly useful with --parents to preserve deep directory structures. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
The description of when health checks run was incomplete. During the start period, checks run at start-interval frequency (default 5s), not at the regular interval (default 30s). Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
When migrating from legacy multi-line ENV/ARG syntax to the modern key=value format, leading whitespace on continuation lines is preserved in both syntaxes. Add a note making this explicit so users understand they may need to adjust indentation when converting. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2f6075d to
2016c37
Compare
|
are you happy now @thaJeztah @crazy-max 😆 |
|
feel free to merge - I don't have write access. |

related issues
Fixes docker/docs#14233
Fixes docker/docs#20549
Fixes docker/docs#22940
Fixes docker/docs#23122
Fixes docker/docs#23140
Fixes docker/docs#23165
Fixes docker/docs#23285
Fixes docker/docs#24096
Fixes docker/docs#24308
Fixes docker/docs#24227