Hi, I try to connect the env values in my app that are existing under the .env-cmdrc file via the 'docker run' command:
'docker run --env-file ./.env-cmdrc -v ${pwd}\src:/app/src -d -p 3000:3000 --name react-app react-image'
And I got an Error:
'docker: poorly formatted environment: variable '"local": {' contains whitespaces.'
Has anyone encountered this issue?
.env-cmdrc is not valid ENV format.
You should run container like this:
docker run -v ${PWD}/.env-cmdrc:/app/.env-cmdrc:ro -v ${pwd}\src:/app/src -d -p 3000:3000 --name react-app react-image
Hi, I try to connect the env values in my app that are existing under the .env-cmdrc file via the 'docker run' command: 'docker run --env-file ./.env-cmdrc -v ${pwd}\src:/app/src -d -p 3000:3000 --name react-app react-image' And I got an Error: 'docker: poorly formatted environment: variable '"local": {' contains whitespaces.' Has anyone encountered this issue?