Skip to content

DecodingError.typeMismatch in build args #136

Open

Description

@thai-nghi

Hi,

I got this error when starting my compose stack

Error: DecodingError.typeMismatch: expected value of type Mapping. Path: services.nginx.build.args. Debug description: Expected to decode Mapping but found Node instead.

when running

container-compose up

Relevant parts of the Docker compose yaml looks like this:

nginx:
    container_name: proxy
    stop_grace_period: 1us
    build:
      context: nginx
      args:
        - DIR=development

Activity

  1. Mcrich23 commented on Sep 9, 2026

    @Mcrich23
    Owner

    Thank you for the example. This is a parsing gap with the list form of build.args. #143 adds support and includes your reproduction. I'll keep this open until that fix is merged and verified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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