mirror of
				https://github.com/docker/compose.git
				synced 2025-10-30 18:53:51 +01:00 
			
		
		
		
	Signed-off-by: Umar Chowdhury <umarfchy@gmail.com> Co-authored-by: Milas Bowman <milasb@gmail.com>
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| # docker compose convert
 | |
| 
 | |
| <!---MARKER_GEN_START-->
 | |
| Converts the compose file to platform's canonical format
 | |
| 
 | |
| ### Aliases
 | |
| 
 | |
| `docker compose convert`, `docker compose config`
 | |
| 
 | |
| ### Options
 | |
| 
 | |
| | Name | Type | Default | Description |
 | |
| | --- | --- | --- | --- |
 | |
| | `--format` | `string` | `yaml` | Format the output. Values: [yaml \| json] |
 | |
| | `--hash` | `string` |  | Print the service config hash, one per line. |
 | |
| | `--images` |  |  | Print the image names, one per line. |
 | |
| | `--no-consistency` |  |  | Don't check model consistency - warning: may produce invalid Compose output |
 | |
| | `--no-interpolate` |  |  | Don't interpolate environment variables. |
 | |
| | `--no-normalize` |  |  | Don't normalize compose model. |
 | |
| | `-o`, `--output` | `string` |  | Save to file (default to stdout) |
 | |
| | `--profiles` |  |  | Print the profile names, one per line. |
 | |
| | `-q`, `--quiet` |  |  | Only validate the configuration, don't print anything. |
 | |
| | `--resolve-image-digests` |  |  | Pin image tags to digests. |
 | |
| | `--services` |  |  | Print the service names, one per line. |
 | |
| | `--volumes` |  |  | Print the volume names, one per line. |
 | |
| 
 | |
| 
 | |
| <!---MARKER_GEN_END-->
 | |
| 
 | |
| ## Description
 | |
| 
 | |
| `docker compose convert` renders the actual data model to be applied on the target platform. When used with the Docker engine,
 | |
| it merges the Compose files set by `-f` flags, resolves variables in the Compose file, and expands short-notation into
 | |
| the canonical format.
 | |
| 
 | |
| To allow smooth migration from docker-compose, this subcommand declares alias `docker compose config`
 |