1. Introduction In this post, we will discuss different ways to pass and set environment variables into a Docker container. Typically, when a new container is created Docker assigns it a few environment variables by default like so: $ docker run alpine:latest env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOSTNAME=de2c993a62fb HOME=/root Let us now explore what options do we have to inject our custom environment ...
Read More »