Article directory
1. What is Docker?
Docker is a container virtualization technology. The container virtualization technology is a technology that simulates multiple operating systems logically on the physical operating system, and different operating systems are isolated from each other and independent of each other.
Here I recommend a blog post about getting started with docker. The author’s introduction to docker is simple and clear, and we compare our common host virtualization technology with docker container virtualization technology, so that we can have a better understanding of Docker technologyhttps: //blog.csdn.net/gui951753/article/details/81148067
2. Use steps
1. Check the docker installation
yum list installed | grep docker
I have already installed docker in my environment, and you can find the installation file under the command. For those who have not installed it, what they see is empty. You can directly look down at the installation steps. It has been installed but it appears If you need to uninstall the problem, you can execute the following command:
yum -y remove docker-ce-cli
Delete the folder
rm -rf /var/lib/docker where the local docker stores image files and data files
, and then check and find that there is still a containerd.io folder. Baidu understands that this is a basic component of docker, so execute
yum -y remove containerd.io
and then check that docker has been uninstalled
2. Install docker
When installing docker for the first time, you need to check the kernel version of the linux environment. When you log in as root, use uname -r to view the
Docker installation command:
yum install docker-ce
The following interface can be seen after the installation is successful:
Start docker: systemctl start docker
Check the docker version: docker -v
3. Install the docker graphical management tool portainer
Add the article referenced by the graphical management interface
Start the graphical interface:
Since my portainer is running on the cloud server, I also need to open port 9000 on the console of the cloud server
You need to enter a password for the first login (I didn't have time to take a screenshot, so I borrow the picture in the reference article):
Make a local connection:
Log in again:
Content page:
Configure Docker image acceleration address:
Ali image accelerator address (log in to the Alibaba Cloud service console container image service to view):
Add the image address to the location in the figure: