mirror of
https://github.com/docker/compose.git
synced 2026-09-23 14:04:35 +00:00
`bridge convert -o <dir>` unconditionally ran `os.RemoveAll` on the output directory and discarded any error, so a typo (`-o .`, `-o $PWD`, `-o ~`) silently destroyed unrelated user data. An empty or missing output directory is still created silently, but a non-empty one now requires explicit confirmation (prompted interactively, or via the new `--yes` flag for scripts/CI) before being wiped. Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
1.4 KiB
1.4 KiB
docker compose bridge convert
Convert compose files to Kubernetes manifests, Helm charts, or another model
Options
| Name | Type | Default | Description |
|---|---|---|---|
--dry-run |
bool |
Execute command in dry run mode | |
-o, --output |
string |
out |
The output directory for the Kubernetes resources |
--templates |
string |
Directory containing transformation templates | |
-t, --transformation |
stringArray |
Transformation to apply to compose model (default: docker/compose-bridge-kubernetes) | |
-y, --yes |
bool |
Assume "yes" to the output directory overwrite prompt. For scripts/CI, where no interactive confirmation is possible |