Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

No image or build context specified error when using override file #393

@joltcoke

Description

@joltcoke

I have a docker-compose.yml (which doesn't contain a build or image setting) and a docker-compose.override.yml (which contains an image setting).

Trying to run "ecs-cli compose create" will result in the following error:

Service 'xyz' has neither an image nor a build context specified

Seems like ecs-cli is evaluating the existence of either build or image settings per file instead of merging all files before doing the check. docker-compose works just fine with the same configuration files.

Workaround: Adding a fake "build: ." setting to docker-compose.yml

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions