ivan starkov
04/12/2024, 8:18 PMdocker run --rm --env-file <(infisical export --format=dotenv) alpine printenv
doesn’t work as expected because docker env files must not contain quotes i.e.
VAR='VALUE'
is not accepted by docker
The workaround I use now
docker run --rm -it --env-file <(infisical export --format=dotenv | while IFS= read -r line; do eval "echo $line"; done) run-me printenv
Corresponding docker issue https://github.com/docker/cli/issues/3630