Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sbaerlocher opened this issue Mar 14, 2024 · 0 comments
Open

Comments

@sbaerlocher
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant