diff --git a/frontend/dockerfile/docs/reference.md b/frontend/dockerfile/docs/reference.md index e08d62914395..07caf6a9b217 100644 --- a/frontend/dockerfile/docs/reference.md +++ b/frontend/dockerfile/docs/reference.md @@ -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 (`'`).