The -e option of the docker run command sets an environment variable inside the container only after the container has…