| 1 |
# docker compose alpha generate |
| 2 |
|
| 3 |
<!---MARKER_GEN_START--> |
| 4 |
EXPERIMENTAL - Generate a Compose file from existing containers |
| 5 |
|
| 6 |
### Options |
| 7 |
|
| 8 |
| Name | Type | Default | Description | |
| 9 |
|:----------------|:---------|:--------|:------------------------------------------| |
| 10 |
| `--dry-run` | `bool` | | Execute command in dry run mode | |
| 11 |
| `--format` | `string` | `yaml` | Format the output. Values: [yaml \| json] | |
| 12 |
| `--name` | `string` | | Project name to set in the Compose file | |
| 13 |
| `--project-dir` | `string` | | Directory to use for the project | |
| 14 |
|
| 15 |
|
| 16 |
<!---MARKER_GEN_END--> |
| 17 |
|