compose/pkg
Milas Bowman 636c13f818 build: do not attempt to push unnamed service images
When building, if images are being pushed, ensure that only
named images (i.e. services with a populated `image` field)
are attempted to be pushed.

Services without `image` get an auto-generated name, which
will be a "Docker library" reference since they're in the
format `$project-$service`, which is implicitly the same as
`docker.io/library/$project-$service`. A push for that is
never desirable / will always fail.

The key here is that we cannot overwrite the `<svc>.image`
field when doing builds, as we need to be able to check for
its presence to determine whether a push makes sense.

Fixes #10813.

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2023-07-19 09:58:37 +02:00
..
api build: do not attempt to push unnamed service images 2023-07-19 09:58:37 +02:00
compose build: do not attempt to push unnamed service images 2023-07-19 09:58:37 +02:00
e2e build: do not attempt to push unnamed service images 2023-07-19 09:58:37 +02:00
mocks Add `docker compose wait` 2023-06-30 16:07:03 +02:00
progress use `--progress` to configure progress UI stylet push 2023-06-12 16:53:42 +02:00
prompt use a simpler prompt implementation when we lack a terminal 2023-01-09 10:28:16 +01:00
utils support `attach` 2023-07-10 14:34:28 +02:00
watch fix typos 2023-06-27 16:12:25 +02:00