Dockerfile does not allow use of environment variables #8272
Labels
docker
Issue involves the AWS CLI Docker container image
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
You cannot state environment variables in aws commands
Expected Behavior
I should be able to use ["s3" , "cp", "${SOURCE}", "${DESTINATION}" ] for exampled where SOURCE and DESTINATION are environment variables
Current Behavior
"${SOURCE}" and "${DESTINATION}" are taken literally as the strings "${SOURCE}" and "${DESTINATION}"
Reproduction Steps
Make an image that USES environment variables in CMD
Possible Solution
After reading about a ancient docker issue., I was able to get environment variables to work by overwriting the entrypoint to a file that contains the following 2 lines:
Additional Information/Context
Related docker issue
moby/moby#5509
CLI version used
2
Environment details (OS name and version, etc.)
Linux
The text was updated successfully, but these errors were encountered: