How to run docker and kubernetes on MacOS
This article mainly explains "how to run docker and kubernetes on MacOS". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to run docker and kubernetes on MacOS".
Prepare:
1, a mac computer
2. Install docker mac desktop after https://hub.docker.com/editions/community/docker-ce-desktop-mac/ download
3Query docker mac desktop provides you with the environment of docker and kuberntetes, but due to the problem of "cracked walls". So you need to modify the configuration of the container image.
{
"experimental": true
"debug": true
"registry-mirrors": [
"https://docker.mirrors.ustc.edu.cn"
]
}
4. When you are ready to start kubernetes, you will find that it is stuck. Because the image needed by kuber is cracked by the wall, you need to download an image from this address here.
Https://github.com/AliyunContainerService/k8s-for-docker-desktop
After downloading, you git checkout the corresponding version according to your own version of kubernetes, and execute the. / load_images.sh file in the directory. (I'm sure people who play git will be familiar with this part).
After waiting for all the images to be downloaded, your mac docker desktop will start kubernetes normally, but the startup process will take a little longer. You wait patiently.
Thank you for your reading, the above is the content of "how to run docker and kubernetes on MacOS". After the study of this article, I believe you have a deeper understanding of how to run docker and kubernetes on MacOS, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!