How can I pass a host environment variable (like user and hostname) to a dockerfile?
For example, if my username is taha:
taha
echo $USER tah
When you start your docker container you can pass environment variables using the -e option like so:
-e
docker run -it -e USER=$USER /bin/bash