compose/cmd
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
..
cmdtrace otel: refactor root command span reporting 2023-06-20 17:25:58 +02:00
compatibility don't skip `compose` used as project name 2023-06-06 10:24:59 +02:00
compose build: do not attempt to push unnamed service images 2023-07-19 09:58:37 +02:00
formatter Fix: Handle concurrent threads using mutex on the rainbowColor function 2023-01-26 12:53:56 +01:00
main.go otel: refactor root command span reporting 2023-06-20 17:25:58 +02:00