<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Assignments in this course &amp; their solutions. on Nerdsid.com</title><link>https://nerdsid.com/notes/docker-mastery/assignments/</link><description>Recent content in Assignments in this course &amp; their solutions. on Nerdsid.com</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 07 Apr 2026 04:40:08 +0000</lastBuildDate><atom:link href="https://nerdsid.com/notes/docker-mastery/assignments/index.xml" rel="self" type="application/rss+xml"/><item><title>Docker assignment 1</title><link>https://nerdsid.com/notes/docker-mastery/assignments/assignment-1/</link><pubDate>Mon, 06 Apr 2026 07:32:28 +0530</pubDate><guid>https://nerdsid.com/notes/docker-mastery/assignments/assignment-1/</guid><description>&lt;h2 id="questionassignment">Question/assignment&lt;/h2>
&lt;p>• Run a nginx, a mysql, and a httpd (apache) server&lt;br>
• Run all of them &amp;ndash;detach (or -d), name them with &amp;ndash;name&lt;br>
• nginx should listen on 80:80, httpd on 8080:80, mysql on 3306:3306&lt;br>
• When running mysql, use the &amp;ndash;env option (or -e) to pass in MYSQL_RANDOM_ROOT_PASSWORD=yes&lt;br>
• Use docker container logs on mysql to find the random password it created on startup&lt;br>
• Clean it all up with docker container stop and docker container rm (both can accept multiple names or ID&amp;rsquo;s)&lt;br>
• Use docker container ls to ensure everything is correct before and after cleanup&lt;/p></description></item></channel></rss>