mirror of
				https://github.com/containers/podman.git
				synced 2025-10-31 10:00:01 +08:00 
			
		
		
		
	 414642efdb
			
		
	
	414642efdb
	
	
	
		
			
			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>
		
			
				
	
	
		
			20 lines
		
	
	
		
			661 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			661 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ####> 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
 | |
| 
 | |
| ```bash
 | |
| # 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.
 |