mirror of
https://github.com/docker/compose.git
synced 2026-11-17 21:57:19 +00:00
`docker compose -f oci://<insecure-registry>/... up` failed against a
plain-HTTP registry unless --yes was passed:
failed to pull OCI resource "localhost:5000/test:interpolated":
Head "https://localhost:5000/v2/test/manifests/interpolated":
http: server gave HTTP response to HTTPS client
`up` loads the project twice. The first load goes through ToProject,
which built its OCI options from --insecure-registry correctly. Without
--yes, checksForRemoteStack then calls promptForInterpolatedVariables,
which re-loads the project through ToModel to list the interpolation
variables. That second load builds its own resource loaders via
remoteLoaders, and those passed an empty api.OCIOptions{}, dropping the
flag. Since the OCI loader always performs a network resolve, the
re-load spoke HTTPS to a plain-HTTP registry and failed before the
prompt could be shown.
The two construction sites had drifted apart, so rather than patching
the second one, both now share ProjectOptions.ociOptions(). `config`
and `viz` use the same ToModel path and are fixed as well.
Covered by an e2e case in TestPublish, which already runs an insecure
registry and an oci:// round-trip: it publishes a fixture carrying an
interpolation variable so the prompt fires, then runs `up` without
--yes and declines, asserting the re-load does not fail with
"server gave HTTP response to HTTPS client".
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Domantas Petrauskas <dom.petrauskas@gmail.com>
|
||
|---|---|---|
| .. | ||
| attach-restart | ||
| bridge | ||
| build-dependencies | ||
| build-infinite | ||
| build-test | ||
| cascade | ||
| commit | ||
| compose-pull | ||
| config | ||
| configs | ||
| container_name | ||
| cp-test | ||
| dependencies | ||
| dotenv | ||
| env-secret | ||
| env_file | ||
| environment | ||
| exec | ||
| export | ||
| external | ||
| hooks | ||
| image-volume-recreate | ||
| init-container | ||
| ipam | ||
| ipc-test | ||
| links | ||
| logging-driver | ||
| logs-test | ||
| model | ||
| nested | ||
| network-alias | ||
| network-interface-name | ||
| network-links | ||
| network-recreate | ||
| network-test | ||
| no-deps | ||
| orphans | ||
| pause | ||
| port-range | ||
| pre_start | ||
| profiles | ||
| project-volume-bind-test | ||
| providers | ||
| ps-test | ||
| publish | ||
| recreate-volumes | ||
| resources | ||
| restart-test | ||
| run-test | ||
| scale | ||
| sentences | ||
| simple-build-test | ||
| simple-composefile | ||
| start-fail | ||
| start-stop | ||
| start_interval | ||
| stdout-stderr | ||
| stop | ||
| switch-volumes | ||
| ups-deps-stop | ||
| volume-test | ||
| volumes | ||
| wait | ||
| watch | ||
| wrong-composefile | ||