This message was deleted.
# rancher-desktop
a
This message was deleted.
h
When running this I get the following variables in the container
Copy code
busybox  | ZA='in compose'
busybox  | ZB='OS'
busybox  | ZC=.'env file'
busybox  | ZD=.env-compose file'
Note that the priority is: 1. environment in compose 2. the environment variable at the CLI 3. the .env file 4. the .env-compose
If I remove env_file from the compose file. I only get this. No .env, no OS variables
Copy code
busybox  | ZA='in compose'
If I set env_file to .env I get
Copy code
busybox  | ZA='in compose'
busybox  | ZB='OS'
busybox  | ZC='.env file'
This doesn't match the Docker spec for precedence. Any ideas? I forgot to mention I'm using
dockerd
so I can play with compose Profiles and this is on an M1 Mac.
I switch to containerd and it looks more like the spec.
Copy code
busybox |ZA='in compose'
busybox |ZB='.env-compose file'
busybox |ZC='.env-compose file'
busybox |ZD='.env-compose file'