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
React native implements the monitoring gesture to...
<br />When you click the link, the web page ...
When designing H5 layout, you will usually encoun...
Modify the simplified file size and download the ...
Problem explanation: When using the CSS animation...
When using Dreamweaver or FrontPage to create HTM...
Docker underlying technology: The two core techno...
This article is from the Apache Spark Meetup held...
1. Flash plug-in package download address: https:...
I remember that a few years ago, there was an int...
I recently stumbled upon the Audiovisual Linux Pr...
In the XHTML language, we all know that the ul ta...
HTML structure <body> <div class="w...
There is a requirement to realize the shaking eff...
Discuz! Forum has many configuration options in th...