push: Fix error message typo

Signed-off-by: Chris Crone <christopher.crone@docker.com>
This commit is contained in:
Chris Crone 2024-10-25 16:01:57 -04:00 committed by Guillaume Lours
parent 26064d4b60
commit eeea049f17
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ func (s *composeService) push(ctx context.Context, project *types.Project, optio
for _, service := range project.Services {
if service.Build == nil || service.Image == "" {
if options.ImageMandatory && service.Image == "" {
return fmt.Errorf("%q attribut is mandatory to push an image for service %q", "service.image", service.Name)
return fmt.Errorf("%q attribute is mandatory to push an image for service %q", "service.image", service.Name)
}
w.Event(progress.Event{
ID: service.Name,