If you have installed the Win10 system and want to build a k8s cluster, the Hyper-V that comes with Win10 is also a very suitable virtual machine environment. In the previous section, we installed two virtual machines. In this section, we will install Docker on both. master: 192.168.137.2 node1: 192.168.137.3 root password: 123456 1. Log in to the virtual machine using ssh With ssh, you can directly connect to the virtual machine in the win10 host 2. Turn off security configuration vi /etc/selinux/config 3. Turn off the firewall systemctl stop firewalld systemctl disable firewalld 4. Permanently disable swap swapoff -a vi /etc/fstab Use # to comment out the swap line 5. Install the latest version of docker https://docs.docker.com/install/linux/docker-ce/centos/ Uninstall the old version of Docker sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine Install dependency packages sudo yum install -y yum-utils \ device-mapper-persistent-data \ lvm2 Configure Docker repository source sudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo Install Docker sudo yum install docker-ce docker-ce-cli containerd.io Let Docker start automatically systemctl enable docker systemctl start docker Check whether the installation is successful docker -v 6. Configure the cgroupdriver type for Alibaba Cloud Image Accelerator and Docker Set to systemd to be consistent with k8s sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["https://pmp7i8xs.mirror.aliyuncs.com"], "exec-opts": ["native.cgroupdriver=systemd"] } EOF Restart Docker sudo systemctl daemon-reload sudo systemctl restart docker TBD: After configuring the docker of two virtual machines, the next step is to install k8s on the two virtual machines The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Instance method for mysql string concatenation and setting null value
>>: Use Python to connect to MySQL database using the pymysql module
This article example shares the specific code of ...
Table of contents 1. What is Set 2. Set Construct...
Mysql multiple unrelated tables query data and pa...
Demand background: Insert GIF dynamic images into...
Table of contents Workaround Why can't I moni...
Table of contents vue2.x vue3.x tiny-emitter plug...
Table of contents 1. Three modes of binlog 1.Stat...
Button is used quite a lot. Here I have sorted ou...
In MySQL, the LOAD_FILE() function reads a file a...
Table of contents 1. Basic overview of the proces...
Solution process: Method 1: The default kernel ve...
After installing Jenkins, the initial download of...
1. What are CSS methodologies? CSS methodologies ...
Today I will take you through the history of ext4...
MySQL uses triggers to solve the row limit of the...