Fix README blurb on --cache-copy-layers, so that the purpose of the flag is more clear. (#2064)

Co-authored-by: Yonatan Koren <10080107+korenyoni@users.noreply.github.com>
This commit is contained in:
Yonatan Koren 2022-05-16 22:20:14 +03:00 committed by GitHub
parent 6b6795e4a7
commit ce1fb51579
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ as a remote image destination:
### Caching
#### Caching Layers
kaniko can cache layers created by `RUN` and `COPY` (configured by flag `--cache-copy-layers`) commands in a remote repository.
kaniko can cache layers created by `RUN` (and `COPY`, configured by the `--cache-copy-layers` flag) commands in a remote repository.
Before executing a command, kaniko checks the cache for the layer.
If it exists, kaniko will pull and extract the cached layer instead of executing the command.
If not, kaniko will execute the command and then push the newly created layer to the cache.