Get the App
SLTechnology News&Howtos  ›  Servers  › 

The process of installing Docker in MacOS and the pits encountered

Shulou Source: shulou.com Published: 2022-06-02 01:15:23 11月11日 Update

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!

Tags: Project script run process no accident information step environment error support test pleasure next preface function raw material raw material just classmate command Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Microsoft Docker Xiaomi NVidia