Skip to content

Commit

Permalink
docs(dockerfile): BuildKit does not discard Volume edits
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Sjölund <[email protected]>
  • Loading branch information
eriksjolund committed Sep 8, 2022
1 parent 7b34166 commit aee838c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/dockerfile/docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2094,7 +2094,8 @@ Keep the following things in mind about volumes in the `Dockerfile`.
- a drive other than `C:`

- **Changing the volume from within the Dockerfile**: If any build steps change the
data within the volume after it has been declared, those changes will be discarded.
data within the volume after it has been declared, those changes will be discarded
when using the legacy builder. When using Buildkit, the changes will instead be kept.

- **JSON formatting**: The list is parsed as a JSON array.
You must enclose words with double quotes (`"`) rather than single quotes (`'`).
Expand Down

0 comments on commit aee838c

Please sign in to comment.