{"id":35,"date":"2022-03-14T18:26:50","date_gmt":"2022-03-14T09:26:50","guid":{"rendered":"https:\/\/blog.interstellar.co.jp\/en\/?p=35"},"modified":"2022-03-14T18:27:59","modified_gmt":"2022-03-14T09:27:59","slug":"installing-docker-on-a-mac-with-homebrew","status":"publish","type":"post","link":"https:\/\/blog.interstellar.co.jp\/en\/2022\/03\/14\/installing-docker-on-a-mac-with-homebrew\/","title":{"rendered":"Installing Docker on a Mac with Homebrew"},"content":{"rendered":"\n<p>Hi, I am Agata.<\/p>\n\n\n\n<p>This time it is how to install Docker with Homebrew on a Mac.<br>I&#8217;m leaving this as a note because many old articles are found when searching, and they are different from the current situation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisite<\/h2>\n\n\n\n<p>Since the situation is changing rapidly, I&#8217;ll write down the assumptions: as of March 14, 2022, the Homebrew version is as follows.<\/p>\n\n\n\n<pre class=\"wp-block-code is-style-dark\"><code>% brew --version\nHomebrew 3.4.1\nHomebrew\/homebrew-core (git revision 0a6a95da043; last commit 2022-03-14)\nHomebrew\/homebrew-cask (git revision dd38743d4e; last commit 2022-03-14)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Install<\/h2>\n\n\n\n<p>Install the GUI application with the following command.<br>There seems to be a separate command line package, but even if you install the GUI app (Docker Desktop), the command line tool will be installed, so unless you have a special reason, you should just use the GUI one.<\/p>\n\n\n\n<pre class=\"wp-block-code is-style-dark\"><code>% brew install --cask docker<\/code><\/pre>\n\n\n\n<p>The command will install the following, which may take a little time to download due to the large size of the GUI application.<\/p>\n\n\n\n<pre class=\"wp-block-code is-style-dark\"><code>Running `brew update --preinstall`...\n==&gt; Downloading https:\/\/desktop.docker.com\/mac\/main\/amd64\/74594\/Docker.dmg\nAlready downloaded: \/Volumes\/ExternalSSD\/Users\/agata\/Library\/Caches\/Homebrew\/downloads\/85d80b9c62f4c5b1c30d51afc0854ad1b15693a99170d661aef8f17140085bb0--Docker.dmg\n==&gt; Installing Cask docker\n==&gt; Moving App 'Docker.app' to '\/Applications\/Docker.app'\n==&gt; Linking Binary 'docker-compose.bash-completion' to '\/usr\/local\/etc\/bash_completion.d\/docker-compose'\n==&gt; Linking Binary 'docker.zsh-completion' to '\/usr\/local\/share\/zsh\/site-functions\/_docker'\n==&gt; Linking Binary 'docker.fish-completion' to '\/usr\/local\/share\/fish\/vendor_completions.d\/docker.fish'\n==&gt; Linking Binary 'docker-compose.fish-completion' to '\/usr\/local\/share\/fish\/vendor_completions.d\/docker-compose.fish'\n==&gt; Linking Binary 'docker-compose.zsh-completion' to '\/usr\/local\/share\/zsh\/site-functions\/_docker_compose'\n==&gt; Linking Binary 'docker.bash-completion' to '\/usr\/local\/etc\/bash_completion.d\/docker'\n\ud83c\udf7a  docker was successfully installed!<\/code><\/pre>\n\n\n\n<p>After installation, launch the application with the following command or from the Finder.<\/p>\n\n\n\n<pre class=\"wp-block-code is-style-dark\"><code>open \/Applications\/Docker.app <\/code><\/pre>\n\n\n\n<p>Once started, you will be asked for your password, as setup requires administrator privileges.<br>When Docker Desktop starts, installation is complete.<\/p>\n\n\n\n<p>At this point, the command line tool is also available. Go back to the terminal and check the version of the command line tool as well.<\/p>\n\n\n\n<pre class=\"wp-block-code is-style-dark\"><code>% docker --version\nDocker version 20.10.12, build e91ed57\n% docker-compose --version\ndocker-compose version 1.29.2, build 5becea4c<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Hi, I am Agata. This time it is how to install Docker with Homebrew on a Mac.I&#8217;m leaving this as a note because many old articles are found when searching, and they are different from the current situation. Prerequisite Since the situation is changing rapidly, I&#8217;ll write down the assumptions: as of March 14, 2022, the Homebrew version is as follows. Install Install the GUI application with the following command.There seems to be a separate command line package, but even if you install the GUI app (Docker Desktop), the command line tool will be installed, so unless you have a special reason, you should just use the GUI one. The&#8230;<\/p>\n","protected":false},"author":2,"featured_media":37,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"vkexunit_cta_each_option":"","footnotes":""},"categories":[4],"tags":[10,9],"class_list":["post-35","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mac","tag-docker","tag-homebrew"],"_links":{"self":[{"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":2,"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/posts\/35\/revisions"}],"predecessor-version":[{"id":38,"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/posts\/35\/revisions\/38"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/media\/37"}],"wp:attachment":[{"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/media?parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/categories?post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/tags?post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}