You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug docker-compose implicitely uses the .env file to populate variables contained in the file passed to env_file, whereas podman-compose does not.
To Reproduce
.env:
BAR=bar
.foo:
FOO=$BAR
docker-compose.yml:
version: "3"
services:
example:
image: busybox
env_file: .foo
command: >
sh -c '
set | grep FOO
'
Expected behavior
I would expect podman-compose to behave the same way as docker-compose.
Actual behavior
docker compose up
example-1 | FOO='bar'
podman-compose up
[example] | FOO='$BAR'
Environment:
OS: Linux
podman version: 4.9.2
podman compose version: 1.0.6
Thanks!
The text was updated successfully, but these errors were encountered:
The value of VAL is used as is and not modified at all. For example if the value is surrounded by quotes (as is often the case of shell variables), the quotes are included in the value passed to Compose.
Describe the bug
docker-compose
implicitely uses the.env
file to populate variables contained in the file passed toenv_file
, whereaspodman-compose
does not.To Reproduce
.env:
.foo:
docker-compose.yml:
Expected behavior
I would expect
podman-compose
to behave the same way asdocker-compose
.Actual behavior
Environment:
Thanks!
The text was updated successfully, but these errors were encountered: