mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-01 09:31:18 +02:00
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:
co-authored by
Yonatan Koren
parent
6b6795e4a7
commit
ce1fb51579
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user