Skip to content

Bug: Environment Variable Formatting Issue in Docker Compose 2.24.7 #78

@sbaerlocher

Description

@sbaerlocher

In Docker Compose version 2.24.7, the output format of environment variables (environments) in the docker-compose config command has changed. It no longer defaults to a dictionary format. Instead, the formatting is preserved as specified in the Docker Compose file: a dictionary remains a dictionary, and a list remains a list.

This change means that if the environment variables are defined as a list, scripts located at https://github.com/whatwedo/dde/blob/master/commands/project/up.sh#L17 and https://github.com/whatwedo/dde/blob/master/commands/_internals/openUrl.sh#L2 may encounter parsing issues with these values. As a workaround, it is recommended to define all environment variables in Docker Compose as dictionaries. Additionally, the mentioned lines in the scripts should be adjusted to accommodate this format change.

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