-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
env_file not processing strings correctly using "docker compose" #11591
Comments
I'm also seeing this regression in a different use-case (using Caused by a schema change in #11536 and compose-spec/compose-go#509. I know that the output of The workaround I have now is to pin the official Docker image to an older version (25.0.3), and submit an MR to update Kompose's compose-go version. |
You could just overwrite compose: services:
cli:
pull_policy: build
build:
dockerfile_inline: |
FROM docker:cli
COPY --link --from=docker/compose-bin:v2.24.6 /docker-compose /usr/local/libexec/docker/cli-plugins/
(and the tags can be "plain" envs just like for images) |
compose spec to evolve obviously makes |
Previous behavior to load env files and populate |
Description
Using this notation with in my .yaml file via docker compose:
Worked with previous version, but not with v2.24.7
I also tested with docker-compose and it works correctly.
I've tried to change it to a few different ways, including using:
and adding quotes etc... nothing is working.
Steps To Reproduce
just use an env_file: via compose.
docker compose --env-file stack.env -f container.yaml config | docker stack deploy container_name --with-registry-auth --compose-file -
Error returned:
services.serviceName.env_file.0 must be a string
Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: