How do I pass environment variables to Docker containers?
I’m new to Docker, and it’s unclear how to access an external database from a container. Is the best way to hard-code in the connection string? # Dockerfile ENV DATABASE_URL amazon:rds/connection?string 16 s 16 You can pass environment variables to your containers with the -e flag. An example from a startup script: sudo docker run … Read more