From ce1fb515798bc4ec0931e95ab3f1410108de0a7c Mon Sep 17 00:00:00 2001 From: Yonatan Koren Date: Mon, 16 May 2022 22:20:14 +0300 Subject: [PATCH] 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> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b7a9ad16c..e0cf40102 100644 --- a/README.md +++ b/README.md @@ -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.