<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Environment variables on Nerdsid.com</title><link>https://nerdsid.com/tags/environment-variables/</link><description>Recent content in Environment variables on Nerdsid.com</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 16 Jun 2026 06:50:38 +0000</lastBuildDate><atom:link href="https://nerdsid.com/tags/environment-variables/index.xml" rel="self" type="application/rss+xml"/><item><title>Docker Environment Variables and Networking</title><link>https://nerdsid.com/posts/docker-environment-variables-and-networking/</link><pubDate>Tue, 16 Jun 2026 06:50:38 +0000</pubDate><guid>https://nerdsid.com/posts/docker-environment-variables-and-networking/</guid><description>&lt;p>In this lab, we&amp;rsquo;ll explore:&lt;/p>
&lt;ul>
&lt;li>Inspecting environment variables in running containers&lt;/li>
&lt;li>Passing environment variables at runtime&lt;/li>
&lt;li>Deploying MySQL containers&lt;/li>
&lt;li>Creating custom Docker networks&lt;/li>
&lt;li>Connecting applications and databases across containers&lt;/li>
&lt;/ul>
&lt;h2 id="task-1-inspect-environment-variables">Task 1: Inspect Environment Variables&lt;/h2>
&lt;p>First, identify the value configured for the &lt;code>APP_COLOR&lt;/code> environment variable in a running container.&lt;/p>
&lt;p>List the running containers:&lt;/p>

&lt;figure class="terminal no-copy">
 &lt;header class="terminal-header">
 &lt;div class="terminal-controls">
 &lt;span class="dot dot--red">&lt;/span>
 &lt;span class="dot dot--yellow">&lt;/span>
 &lt;span class="dot dot--green">&lt;/span>
 &lt;/div>
 
 &lt;/header>
 &lt;pre>&lt;code>$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cdf886f902d4 kodekloud/simple-webapp "python app.py" 10 minutes ago Up 10 minutes 8080/tcp mystifying_knuth&lt;/code>&lt;/pre>
&lt;/figure>

&lt;p>Inspect the container and look for the &lt;code>Env&lt;/code> section:&lt;/p></description></item><item><title>How to Set Git Username and Email Using Environment Variables</title><link>https://nerdsid.com/posts/git-username-and-email-from-environment-variables/</link><pubDate>Wed, 11 Sep 2024 15:39:06 +0530</pubDate><guid>https://nerdsid.com/posts/git-username-and-email-from-environment-variables/</guid><description>&lt;h2 id="introduction">Introduction&lt;/h2>
&lt;p>Git associates a username and email with every commit. The username and email are retrieved from Git&amp;rsquo;s configuration, which can be set globally (for all repositories) or locally (for a specific repository). For example to set the username globally, you can run the command &lt;code>git config --global user.name &amp;quot;Your Name&amp;quot;&lt;/code>.&lt;/p>
&lt;p>However, an alternative way to achieve this is by using environment variables. This can be useful for several reasons, such as:&lt;/p></description></item></channel></rss>