github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/options/cache-to.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-to**=*image* 6 7 Set this flag to specify a remote repository that is used to store cache images. Buildah attempts to 8 push newly built cache image to the remote repository. 9 10 Note: Use the `--cache-from` option in order to use cache content in a remote repository. 11 12 Example 13 14 ```bash 15 # populate a cache and also consult it 16 buildah build -t test --layers --cache-to registry/myrepo/cache --cache-from registry/myrepo/cache . 17 ``` 18 19 Note: `--cache-to` option is ignored unless `--layers` is specified.