whenever I start the docker container, I want to send the dynamic file name as some environment variable.
It is available in the container, so it prints its value when we echo.
But the ADD command does not add this file.
Dockerfile:
ADD $filename ./
echo ls
docker run -e filename = '/path/to/file.extension'
source
share