Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Homebrew to install Docker in Mac

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to use Homebrew to install Docker in Mac" related knowledge, editor through the actual case to show you the operation process, the method of operation is simple and fast, practical, I hope that this "how to use Homebrew to install Docker in Mac" article can help you solve the problem.

Install using Homebrew

MacOS We can use Homebrew to install Docker.

Homebrew's Cask already supports Docker for Mac, so it's easy to install using Homebrew Cask:

$brew cask install docker== > Creating Caskroom at / usr/local/Caskroom== > We'll set permissions properly so we won't need sudo in the futurePassword: # enter macOS password = > Satisfying dependencies== > Downloading https://download.docker.com/mac/stable/21090/Docker.dmg###################################################### # 100.0% Docker.app' to = > Verifying checksum for Cask docker== > Installing Cask docker== > Moving App 'Docker.app' to' / Applications/Docker.app'.? Docker was successfully installed!

After loading Docker app, click Next, you may be asked for your macOS login password, you can enter it. After that, a prompt window for Docker to run will pop up, and there will also be an icon for the baby whale on the status bar.

Download and install manually

If you need to download manually, please click the link below to download the Stable or Edge version of Docker for Mac.

Like other macOS software, installation is easy, double-click the downloaded .dmg file, and then drag the whale icon to the Application folder.

Find the Docker icon in the application and click run. You may ask for the login password of macOS and enter it.

Clicking the whale icon in the top status bar will bring up the action menu.

The first time you click on the icon, you may see the successful installation interface, click "Got it!" You can close this window.

After starting the terminal, you can check the installed version of Docker with the command.

$docker-- versionDocker version 17.09.1-ce, build 19e2cf6 image acceleration

In view of the domestic network problems, it is very slow to pull the Docker image later. We can configure an accelerator to solve it. I use NetEase's image.

Click the Docker for mac App icon in the taskbar-> Perferences … -> Daemon-> Registry mirrors. Just fill in the accelerator address in the list. After the modification is completed, click the Apply & Restart button, and Docker will restart and apply the configured image address.

We can then use docker info to see if the configuration is successful.

$docker info...Registry Mirrors: http://hub-mirror.c.163.comLive Restore Enabled: false's content on "how to use Homebrew to install Docker in Mac" ends here. Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report