mirror of
https://github.com/containers/podman.git
synced 2025-05-20 16:47:39 +08:00

Move the options for the podman build doc to a common md that can be used by both podman build and podman farm build. Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
661 B
661 B
####> This option file is used in: ####> podman build, farm build ####> If file is edited, make sure the changes ####> are applicable to all of those.
--cache-to=image
Set this flag to specify a remote repository that is used to store cache images. Buildah attempts to push newly built cache image to the remote repository.
Note: Use the --cache-from
option in order to use cache content in a remote repository.
Example
# populate a cache and also consult it
buildah build -t test --layers --cache-to registry/myrepo/cache --cache-from registry/myrepo/cache .
Note: --cache-to
option is ignored unless --layers
is specified.