{"id":915,"date":"2024-08-08T18:11:00","date_gmt":"2024-08-08T18:11:00","guid":{"rendered":"https:\/\/zahiralam.com\/blog\/?p=915"},"modified":"2024-12-16T14:36:08","modified_gmt":"2024-12-16T14:36:08","slug":"set-up-docker-on-your-mac-m1-m2-m3-in-minutes","status":"publish","type":"post","link":"https:\/\/zahiralam.com\/blog\/set-up-docker-on-your-mac-m1-m2-m3-in-minutes\/","title":{"rendered":"Set Up Docker on Your Mac M1,\u00a0M2, M3 in Minutes"},"content":{"rendered":"\n<p>Docker is a powerful platform for building, shipping, and running applications in containers. Follow these steps to install Docker on a Mac with an M1, M2, or M3 chip.\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Download Docker Desktop<\/h3>\n\n\n\n<p>1. <strong>Visit the Docker Desktop Download Page<\/strong>:\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open your web browser and go to the <a href=\"https:\/\/www.docker.com\/products\/docker-desktop\" target=\"_blank\" rel=\"noreferrer noopener\">Docker Desktop download page<\/a>.<\/li>\n<\/ul>\n\n\n\n<p>2. <strong>Select the macOS Version<\/strong>:\n\n\n\n<ul class=\"wp-block-list\">\n<li>Choose the version for Apple Silicon. This version is optimized for the ARM architecture used by M1, M2, and M3 chips.<\/li>\n<\/ul>\n\n\n\n<p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/12\/image.png\" alt=\"Select the macOS Apple Silicon Version - Docker\" class=\"wp-image-1437\" width=\"672\" height=\"387\" srcset=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/12\/image.png 2044w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/12\/image-300x173.png 300w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/12\/image-1024x591.png 1024w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/12\/image-768x443.png 768w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/12\/image-1536x887.png 1536w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/12\/image-1800x1039.png 1800w\" sizes=\"auto, (max-width: 672px) 100vw, 672px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Install Docker Desktop<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open the Downloaded File<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once the download is complete, open the <code>.dmg<\/code>  file by double click from your Downloads folder.<\/li>\n<\/ul>\n\n\n\n<p>2. <strong>Drag Docker to Applications<\/strong>:\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the window that opens, drag the Docker icon to the Applications folder.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-9-1024x416.png\" alt=\"Drag Docker to Applications\" class=\"wp-image-932\" width=\"653\" height=\"265\" srcset=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-9-1024x416.png 1024w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-9-300x122.png 300w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-9-768x312.png 768w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-9.png 1148w\" sizes=\"auto, (max-width: 653px) 100vw, 653px\" \/><\/figure>\n\n\n\n<p>3. <strong>Launch Docker Desktop<\/strong>:\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to the Applications folder and double-click the Docker icon to launch Docker Desktop.<\/li>\n\n\n\n<li><strong><strong>Security Prompt<\/strong>:&nbsp;<\/strong>: You might see a security warning like the one shown below. This is a standard macOS security prompt. Click &#8220;Open&#8221; to continue.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-10.png\" alt=\" security warning - docker\" class=\"wp-image-935\" width=\"538\" height=\"454\" srcset=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-10.png 832w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-10-300x253.png 300w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-10-768x648.png 768w\" sizes=\"auto, (max-width: 538px) 100vw, 538px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Subscription Service Agreement<\/strong>: You will see a screen like the one below. This is the Docker Subscription Service Agreement.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-11-1024x649.png\" alt=\"Subscription Service Agreement - Docker\" class=\"wp-image-937\" width=\"597\" height=\"378\" srcset=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-11-1024x649.png 1024w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-11-300x190.png 300w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-11-768x487.png 768w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-11-1536x974.png 1536w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-11-1800x1141.png 1800w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-11.png 1972w\" sizes=\"auto, (max-width: 597px) 100vw, 597px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Review the terms and click &#8220;Accept&#8221; to proceed.<\/li>\n\n\n\n<li><strong>Finish Setting Up Docker Desktop<\/strong>: You will see a screen like the one below. Choose your preferred settings.\n<ul class=\"wp-block-list\">\n<li><strong>Use Recommended Settings<\/strong>: Select this option and click &#8220;Finish&#8221;. Docker Desktop will automatically set the necessary configurations.<\/li>\n\n\n\n<li><strong>Use Advanced Settings<\/strong>: Select this option if you prefer to manually set your configurations.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-12-1024x551.png\" alt=\"Use Recommended Settings - Docker\" class=\"wp-image-938\" srcset=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-12-1024x551.png 1024w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-12-300x161.png 300w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-12-768x413.png 768w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-12-1536x826.png 1536w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-12-1800x968.png 1800w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-12.png 1860w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Privileged Access<\/strong>: You will see a prompt like the one below asking for your password to apply the configurations.\n<ul class=\"wp-block-list\">\n<li>Enter your macOS password and click &#8220;OK&#8221;.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-13.png\" alt=\"Privileged Access - Docker\" class=\"wp-image-939\" width=\"317\" height=\"382\" srcset=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-13.png 548w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-13-249x300.png 249w\" sizes=\"auto, (max-width: 317px) 100vw, 317px\" \/><\/figure>\n\n\n\n<p>\n\n\n\n<p>4. <strong><strong>Welcome to Docker Desktop<\/strong><\/strong>:\n\n\n\n<p>You will see a screen like the one below. You can sign in, sign up, or continue without signing in.\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-14.png\" alt=\"Welcome to Docker Desktop\" class=\"wp-image-941\" width=\"473\" height=\"363\" srcset=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-14.png 1024w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-14-300x231.png 300w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-14-768x591.png 768w\" sizes=\"auto, (max-width: 473px) 100vw, 473px\" \/><\/figure>\n\n\n\n<p>Click &#8220;Continue without signing in&#8221; to proceed quickly, or sign in\/sign up if you want to access additional features.\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Verify Docker Installation<\/h3>\n\n\n\n<p>1. <strong>Open Terminal<\/strong>:\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use Spotlight (Cmd + Space) and type &#8220;Terminal&#8221; to open the Terminal application.<\/li>\n<\/ul>\n\n\n\n<p>2. <strong>Check Docker Version<\/strong>:\n\n\n\n<ul class=\"wp-block-list\">\n<li>Run the following command to verify that Docker is installed correctly:<\/li>\n<\/ul>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-1\">docker --version<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#docker%20--version\">\n                            <button class=\"copy-button\" data-label=\"docker --version\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You should see the Docker version printed in the terminal.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"93\" src=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-15-1024x93.png\" alt=\"docker version check\" class=\"wp-image-943\" srcset=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-15-1024x93.png 1024w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-15-300x27.png 300w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-15-768x70.png 768w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-15.png 1030w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Configure Docker Desktop<\/h3>\n\n\n\n<p>1. <strong>Open Docker Preferences<\/strong>:\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on the Docker icon in the menu bar at the top of the screen and select &#8220;Preferences&#8221;.<\/li>\n<\/ul>\n\n\n\n<p>2. <strong>Adjust Resources<\/strong>:\n\n\n\n<ul class=\"wp-block-list\">\n<li>Under the &#8220;Resources&#8221; tab, you can adjust the CPU, Memory, and Disk space allocated to Docker based on your needs.<\/li>\n<\/ul>\n\n\n\n<p>3. <strong>Enable Kubernetes (Optional)<\/strong>:\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you plan to use Kubernetes, you can enable it under the &#8220;Kubernetes&#8221; tab.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Run a Test Container<\/h3>\n\n\n\n<p>1. <strong>Run Hello World Container<\/strong>:\n\n\n\n<ul class=\"wp-block-list\">\n<li>In Terminal, run the following command to test Docker:<\/li>\n<\/ul>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-2\">docker run hello-world<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#docker%20run%20hello-world\">\n                            <button class=\"copy-button\" data-label=\"docker run hello-world\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This command downloads a test image, runs it in a container, and prints a message.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-16-1024x560.png\" alt=\"\" class=\"wp-image-1000\" width=\"612\" height=\"335\" srcset=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-16-1024x560.png 1024w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-16-300x164.png 300w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-16-768x420.png 768w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-16.png 1448w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/figure>\n\n\n\n<p>2. <strong>Verify the Output<\/strong>:\n\n\n\n<ul class=\"wp-block-list\">\n<li>You should see a message indicating that Docker is working correctly.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6: Basic Docker Commands<\/h3>\n\n\n\n<p>Here are some basic Docker commands to get you started:\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>List Running Containers<\/strong>:<\/li>\n<\/ol>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-3\">docker ps<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#docker%20ps\">\n                            <button class=\"copy-button\" data-label=\"docker ps\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li><strong>List All Containers<\/strong>:<\/li>\n<\/ol>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-4\">docker ps -a<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#docker%20ps%20-a\">\n                            <button class=\"copy-button\" data-label=\"docker ps -a\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li><strong>Pull an Image<\/strong>:<\/li>\n<\/ol>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-5\">docker pull ubuntu<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#docker%20pull%20ubuntu\">\n                            <button class=\"copy-button\" data-label=\"docker pull ubuntu\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li><strong>Run a Container<\/strong>:<\/li>\n<\/ol>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-6\">docker run -it ubuntu \/bin\/bash<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#docker%20run%20-it%20ubuntu%20%2Fbin%2Fbash\">\n                            <button class=\"copy-button\" data-label=\"docker run -it ubuntu \/bin\/bash\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\">\n<li><strong>Stop a Container<\/strong>:<\/li>\n<\/ol>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-7\">docker stop &lt;container_id&gt;<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#docker%20stop%20%3Ccontainer_id%3E\">\n                            <button class=\"copy-button\" data-label=\"docker stop &lt;container_id&gt;\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"6\">\n<li><strong>Remove a Container<\/strong>:<\/li>\n<\/ol>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-8\">docker rm &lt;container_id&gt;<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#docker%20rm%20%3Ccontainer_id%3E\">\n                            <button class=\"copy-button\" data-label=\"docker rm &lt;container_id&gt;\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"7\">\n<li><strong>Remove an Image<\/strong>:<\/li>\n<\/ol>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-9\">docker rmi &lt;image_id&gt;<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#docker%20rmi%20%3Cimage_id%3E\">\n                            <button class=\"copy-button\" data-label=\"docker rmi &lt;image_id&gt;\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Step 7: Docker Compose (Optional)<\/h3>\n\n\n\n<p>Docker Compose is a tool for defining and running multi-container Docker applications.\n\n\n\n<p>1. <strong>Create a <code>docker-compose.yml<\/code> File<\/strong>:\n\n\n\n<ul class=\"wp-block-list\">\n<li>Example <code>docker-compose.yml<\/code>:<\/li>\n<\/ul>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-10\">version: &#039;3&#039;\nservices:\n  web:\n    image: nginx:latest\n    ports:\n      - &quot;80:80&quot;<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#version%3A%20%273%27%0Aservices%3A%0A%20%20web%3A%0A%20%20%20%20image%3A%20nginx%3Alatest%0A%20%20%20%20ports%3A%0A%20%20%20%20%20%20-%20%2280%3A80%22\">\n                            <button class=\"copy-button\" data-label=\"version: &#039;3&#039;\nservices:\n  web:\n    image: nginx:latest\n    ports:\n      - &quot;80:80&quot;\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>2. <strong>Run Docker Compose<\/strong>:\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to the directory containing <code>docker-compose.yml<\/code> and run: <\/li>\n<\/ul>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-11\">docker-compose up<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#docker-compose%20up\">\n                            <button class=\"copy-button\" data-label=\"docker-compose up\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To run in detached mode (in the background):<\/li>\n<\/ul>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-12\">docker-compose up -d<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#docker-compose%20up%20-d\">\n                            <button class=\"copy-button\" data-label=\"docker-compose up -d\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>3. <strong>Stop Docker Compose<\/strong>:\n\n\n\n<ul class=\"wp-block-list\">\n<li>To stop the services:<\/li>\n<\/ul>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-13\">docker-compose down<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#docker-compose%20down\">\n                            <button class=\"copy-button\" data-label=\"docker-compose down\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>\n\n\n\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\n\n\n\n<p>You have successfully installed Docker on your Mac with an M1, M2, or M3 chip! You can now start exploring Docker&#8217;s capabilities to containerize your applications and manage them efficiently.\n\n\n\n<p>If you encounter any issues, refer to the <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.docker.com\/\" target=\"_blank\">official Docker documentation<\/a> or seek help from the Docker community.\n\n\n\n<p>Additionally, feel free to leave comments or questions below for further clarification!\n","protected":false},"excerpt":{"rendered":"<p>Docker is a powerful platform for building, shipping, and running applications in containers. Follow these steps to install Docker on a Mac with an M1, [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":928,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[214],"tags":[28,224,223,17],"class_list":["post-915","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-installation","tag-apple-silicon","tag-containerization","tag-docker","tag-mac-m1-m2-m3"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/915","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/comments?post=915"}],"version-history":[{"count":22,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/915\/revisions"}],"predecessor-version":[{"id":1439,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/915\/revisions\/1439"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/media\/928"}],"wp:attachment":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/media?parent=915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/categories?post=915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/tags?post=915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}