I am learning how to pass environment variables to Docker containers. While the following works fine,
Dockerfile
FROM ubuntu E
OK, I got it. Instead of the following,
docker run -d enviro -e USERNAME='david'
it must be like this
docker run -d -e USERNAME='david' enviro
No idea, why docker requires the environment variable before the image's name though.