I have multi-line environment variables:
SINGLE_LINE=VALUE
MULTI_LINE=VA
LU E
I want to pass this environment variables using a file through --env-file parameter of docker run.
When I pass this file to a Docker container, using --env-file, it fails with a message:
export SINGLE_LINE=VALUE
export MULTI_LINE="VA
LU E"
env > .env
docker run -ti --rm --env-file .env busybox sh
docker: poorly formatted environment: variable 'LU E' contains whitespaces.
See 'docker run --help'.
How to fix that?