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

The process of installing Docker in MacOS and the pits encountered

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

I had the privilege of participating in the Skeleton project, although all I did was to rewrite bat scripts into shell scripts to support the project's automatic deployment to Docker in a Mac/Linux environment. Once the operation comes down, it is found that Docker is a quite cool project. All right, let's get back to the digress. here we record the process of installing Docker in Mac and some of the pits encountered, so that the later students can avoid the minefield.

Preface

First of all, provide the raw materials you need:

Docker official website, you may need to climb the wall to access the MacOS 10.x system.

Download Docker

Go directly to the Docker official website and download the DMG installation package, and so on.

If you start after installation, the following error should be reported without accident:

Docker does not rely on Virtualbox but may not work properly on systems with VirtualBox versions prior to v4.3.30VirtualBox v4.3.28 is currently installed.Please upgrade or uninstall Virtualbox.

If your Docker does not report the above error, please ignore the following paragraph.

Problem solving

I solved the problem by referring to an official issue of docker:

First check the kextstat of the local environment:

Enter a command

Kextstat | grep-I virtualbox

My local result is:

If there is any feedback, perform the second step.

Cd / Library/Application\ Support/VirtualBox/

After the ls is executed, it should look like this without any accident:

Execute under this directory:

Rm-rf * .kext

After emptying the kext file, we execute it again

Kextstat | grep-I virtualbox

At this time, there should be no information to show, so we restart the computer again, and then run docker should not be wrong.

Download Kitematic

When Docker is up and running, we still need to install Kitematic to happily make friends with docker:

The installation step is very simple, click on the icon of docker, select Kitematic in the drop-down box, and then the installation steps are brief.

test

I use Skeleton to test here, because this project has an one-click script "install-docker.sh" deployed to docker. After running this script, you can see the Skeleton project on our new deployment on docker. The screenshot is as follows:

Summary

The above is the process of MacOS installation of Docker and the pit encountered by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply you in time. Thank you very much for your support to the website!

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

Servers

Wechat

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

12
Report