1. Install dependency packages [root@localhost ~]# yum install -y yum-utils device-mapper-persistent-data lvm2 2. Set up the Alibaba Cloud image source [root@localhost ~]# yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo 3. Install Docker-CE [root@localhost ~]# yum install -y docker-ce 4. Turn off firewall and enhanced security features [root@localhost ~]# systemctl stop firewalld.service [root@localhost ~]# setenforce 0 [root@localhost ~]# 5. Enable the service and set it to start automatically at boot [root@localhost ~]# systemctl start docker.service [root@localhost ~]# systemctl enable docker.service Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service. [root@localhost ~]# 6. Set up Alibaba Cloud image acceleration (1) Go to the Alibaba Cloud homepage and select Login. If you don’t have an account, you can register one. (2) After successful login, select the console (3) Select products and services, then select container image service (4) Select the mirror accelerator at the bottom. At this time, you can provide the corresponding accelerator address according to your system. Everyone has their own accelerator address. (5) Configuring image acceleration [root@localhost ~]# cd /etc/docker/ ##If this directory does not exist, you need to create it manually [root@localhost docker]# ls key.json [root@localhost docker]# tee /etc/docker/daemon.json <<-'EOF' ##Configure image acceleration> { > "registry-mirrors": ["https://******.******.aliyuncs.com"] > } > EOF { "registry-mirrors": ["https://******.*******.aliyuncs.com"] } [root@localhost docker]# ls daemon.json key.json [root@localhost docker]# systemctl daemon-reload ##Reload the daemon process [root@localhost docker]# systemctl restart docker ##Restart docker [root@localhost docker]# 7. Enable the system's packet forwarding function [root@localhost docker]# echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf [root@localhost docker]# sysctl -p ##Load configuration net.ipv4.ip_forward = 1 [root@localhost docker]# 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:
|
<<: WeChat applet implements simple calculator function
>>: Will this SQL writing method really cause the index to fail?
Gird layout has some similarities with Flex layou...
When we introduced nginx, we also used nginx to s...
Learning objectives: The two functions parseInt()...
Environmental preparation: Deploy lnmp on a host ...
Recently, I need to package the project for membe...
This article example shares the specific code of ...
// It took me a whole afternoon to install this, ...
Table of contents 1. Basic Use 2. Image quantity ...
:is dynamic component Use v-bind:is="compone...
MySQL deployment Currently, the company deploys M...
When we develop a single-page application, someti...
CSS Layout - position Property The position attri...
This article shares the encapsulation code of Jav...
Copy code The code is as follows: <div class=&...
The solution to the problem that the PHP7.3 versi...