github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/options/cache-from.md (about) 1 ####> This option file is used in: 2 ####> podman build, farm build 3 ####> If file is edited, make sure the changes 4 ####> are applicable to all of those. 5 #### **--cache-from**=*image* 6 7 Repository to utilize as a potential cache source. When specified, Buildah tries to look for 8 cache images in the specified repository and attempts to pull cache images instead of actually 9 executing the build steps locally. Buildah only attempts to pull previously cached images if they 10 are considered as valid cache hits. 11 12 Use the `--cache-to` option to populate a remote repository with cache content. 13 14 Example 15 16 ```bash 17 # populate a cache and also consult it 18 buildah build -t test --layers --cache-to registry/myrepo/cache --cache-from registry/myrepo/cache . 19 ``` 20 21 Note: `--cache-from` option is ignored unless `--layers` is specified.