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

Confusing "invalid compose project" Error Message From Compose v2 #2050

@mccarthy

Description

@mccarthy

Docker Desktop quietly updated me to Compose v2 (v2.0.0-rc.1 specifically), and now I'm getting this error message when I run most any docker-compose command (e.g. docker-compose top) for a complicated project:

service "extensions" has neither an image nor a build context specified: invalid compose project

I'm guessing v2 doesn't like something in my compose files, but as best I can tell I don't have a service named "extensions" so this error message is not very helpful. I saw another issue (https://github.com/docker/compose-cli/issues/1968) related to empty strings and quotes that referenced a similar error message, but it appeared in that case the service mentioned in the error message was a real service from the person's docker-compose file.

I do also get a number of warnings about a variable that is not set, but these warnings occurred (and didn't cause issues) in v1.
WARN[0000] The "REDACTED" variable is not set. Defaulting to a blank string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions