Alibaba Cloud Server Docker Installation and Uninstallation

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
insert image description here

2. Use steps

1. Check the docker installation

yum list installed | grep docker insert image description here
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

insert image description here
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
insert image description here

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
insert image description here
Docker installation command:
yum install docker-ce

The following interface can be seen after the installation is successful:
insert image description here
Start docker: systemctl start docker
Check the docker version: docker -v
insert image description here

3. Install the docker graphical management tool portainer

Add the article referenced by the graphical management interface
insert image description here
Start the graphical interface:
insert image description here
Since my portainer is running on the cloud server, I also need to open port 9000 on the console of the cloud server
insert image description here

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):
insert image description here
Make a local connection:
insert image description here

Log in again:
insert image description here
Content page:
insert image description here
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:
insert image description here

Summarize

The above is the whole process of installing Docker on my cloud server. Welcome friends who have questions to leave a message. Let's learn Docker together and make progress together!

Guess you like

Origin blog.csdn.net/only_xing/article/details/117413964