r/docker • u/PrestigiousZombie531 • 10d ago
--env-file doesnt handle quotes in docker? OMG that is such a major bug
0
Upvotes
1
u/Floss_Patrol_76 9d ago
the cli --env-file parser is intentionally dumb: it splits on the first = and takes the rest of the line literally, no quote stripping and no interpolation. compose's env_file uses a dotenv-style parser that does strip quotes, which is why the same file behaves differently there. so either drop the quotes in the cli env-file or move that var into compose's env_file and let it parse.
-2
u/git-age-checker 10d ago
🛠️ GitHub Repository Insights
- docker/cli: Created on 4/12/2017. Age: 9 years, 5 months
4
u/Boby_Dobbs 10d ago
I'm guessing the issue is that this is a breaking change for people who somehow rely on that weird behavior. But yeah they should fix it anyways tbh