{"id":408,"date":"2023-12-29T02:29:10","date_gmt":"2023-12-29T02:29:10","guid":{"rendered":"https:\/\/www.flexpaul.com\/?p=408"},"modified":"2023-12-29T02:29:10","modified_gmt":"2023-12-29T02:29:10","slug":"dive-into-docker-a-beginners-guide-work-in-progress","status":"publish","type":"post","link":"https:\/\/www.flexpaul.com\/index.php\/2023\/12\/29\/dive-into-docker-a-beginners-guide-work-in-progress\/","title":{"rendered":"Dive into Docker: A Beginner&#8217;s Guide (Work in Progress)"},"content":{"rendered":"\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>System Software Used in this Tutorial:<\/summary>\n<p class=\"wp-block-paragraph\">Ionos VPS running Ubuntu 22.04<br>Docker version 24.0.7, build afdd53b (at the time of writing)<\/p>\n<\/details>\n\n\n\n<p class=\"wp-block-paragraph\">Welcome aboard the containerization journey! This is your launchpad to getting started with Docker, a powerful tool for building and running applications in isolated environments. Think of it as a pocket universe for your app, complete with everything it needs to thrive, without messing with your main system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This tutorial is a living document, constantly evolving as we discover more beginner-friendly and handy commands. Consider it your cheat sheet to Docker mastery, growing alongside your skills.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>First Steps:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Set Sail:<\/strong> Install Docker! Head over to <a href=\"https:\/\/docs.docker.com\/get-started\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/docs.docker.com\/get-started\/<\/a> for easy instructions on getting Docker Desktop for Mac and Windows, or Docker Engine for Linux.\u2002In this tutorial we will be using commands for Ubuntu 22.04.<\/li>\n\n\n\n<li><strong>Hello, World!:<\/strong> Let&#8217;s test the waters. Open a terminal and type <code class=\"\">sudo docker run hello-world<\/code>. This pulls the &#8220;hello-world&#8221; image from a public repository and runs it, printing a friendly greeting. You&#8217;ve just launched your first container!<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Essential Commands:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>sudo docker ps<\/code>:<\/strong>\u00a0Peek at your running containers.<\/li>\n\n\n\n<li><strong><code><strong><code>sudo<\/code><\/strong><\/code><\/strong> <strong><code>docker stop &lt;container_name><\/code>:<\/strong>\u00a0Halt a running container.<\/li>\n\n\n\n<li><strong><code><strong><code>sudo<\/code><\/strong><\/code><\/strong> <strong><code>docker pull &lt;image_name><\/code>:<\/strong>\u00a0Download an image from Docker Hub (the container app store).<\/li>\n\n\n\n<li><strong><code><strong><code>sudo<\/code><\/strong><\/code><\/strong> <strong><code>docker run &lt;image_name><\/code>:<\/strong>\u00a0Launch a container from an image.<\/li>\n\n\n\n<li><strong><code><strong><code>sudo<\/code><\/strong><\/code><\/strong> <strong><code>docker logs &lt;container_name><\/code>:<\/strong>\u00a0See what&#8217;s happening inside a container.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Next Stop:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is just the beginning! As the tutorial evolves, we&#8217;ll delve deeper into:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Clean up:<\/strong> Keeping your system clean from &#8220;tossed&#8221; containers<\/li>\n\n\n\n<li><strong>Building your own custom images:<\/strong>\u00a0Craft containers tailored to your specific needs.<\/li>\n\n\n\n<li><strong>Port mapping:<\/strong>\u00a0Connect your container to the outside world.<\/li>\n\n\n\n<li><strong>Volumes:<\/strong>\u00a0Keep your data safe and persistent even after container restarts.<\/li>\n\n\n\n<li><strong>Docker Compose:<\/strong>\u00a0Manage multiple containers with ease.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Stay Tuned:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Remember, this is a continuous voyage. Keep checking back for updated commands, resources, and exciting new topics as we explore the vast Docker landscape together. Feel free to leave your suggestions and contributions in the comments below!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s set sail and conquer the container world, one command at a time!<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-post-author\"><div class=\"wp-block-post-author__avatar\"><img alt='Avatar photo' src='https:\/\/www.flexpaul.com\/wp-content\/uploads\/2023\/12\/cropped-cropped-image145-96x96.png' srcset='https:\/\/www.flexpaul.com\/wp-content\/uploads\/2023\/12\/cropped-cropped-image145-192x192.png 2x' class='avatar avatar-96 photo' height='96' width='96' \/><\/div><div class=\"wp-block-post-author__content\"><p class=\"wp-block-post-author__name\"><a href=\"https:\/\/www.flexpaul.com\/index.php\/author\/ppmuetze\/\" target=\"_self\">Paul<\/a><\/p><p class=\"wp-block-post-author__bio\">Coffee-fueled and code-driven, I&#8217;m Paul, a digital nomad tech consultant with a knack for navigating the ever-evolving landscapes of open-source software, solar power, and the occasional political pit stop. With 20+ years of experience under my belt, I&#8217;m excited to share my insights, weave captivating narratives about technology&#8217;s impact, and offer valuable perspectives on leadership and positivity. So, grab your digital passport and join me on this virtual voyage of the internet&#8217;s quirky corners, one thought-provoking discussion at a time. Buckle up, it&#8217;s gonna be an informative and wildly exciting ride!<\/p><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Playing With Docker<\/p>\n","protected":false},"author":1,"featured_media":409,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[308,4],"tags":[],"class_list":["post-408","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker","category-tutorial"],"jetpack_featured_media_url":"https:\/\/www.flexpaul.com\/wp-content\/uploads\/2023\/12\/01-primary-blue-docker-logo.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/posts\/408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/comments?post=408"}],"version-history":[{"count":2,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/posts\/408\/revisions"}],"predecessor-version":[{"id":411,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/posts\/408\/revisions\/411"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/media\/409"}],"wp:attachment":[{"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/media?parent=408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/categories?post=408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/tags?post=408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}