I have been quite free recently. I have been doing internship for a few months as a senior in college. As an intern, I was asked to study Docker. Shame! The three core concepts of Docker: images, containers, and warehouses Image: Similar to the image of a virtual machine, in layman's terms, it is an installation file. Container: Similar to a lightweight sandbox, a container is an application running instance created from an image. It can be started, started, stopped, and deleted, and these containers are isolated and invisible to each other. Warehouse: Similar to a code warehouse, it is a place where Docker stores image files. Let’s briefly introduce how to install Docker on CentOS. Prerequisites:
1. Check the kernel version. The returned value should be greater than 3.10. $ uname -r 2. Log in to the terminal using sudo or a user with root privileges. 3. Make sure yum is up to date $ yum update 4. Add yum repository tee /etc/yum.repos.d/docker.repo <<-'EOF' [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/ enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg EOF 5. Install Docker $ yum install -y docker-engine After successful installation, use the docker version command to check whether the installation is successful. After successful installation------as shown below 6. Start Docker $ systemctl start docker.service 7. Verify whether the installation is successful (the presence of client and service parts indicates that the docker installation and startup are successful) Use the docker version command to view 8. Set the startup to start automatically $ sudo systemctl enable docker So far, Docker is fully installed. If there are any shortcomings, fellow Taoists are welcome to point them out. Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: JavaScript design pattern learning adapter pattern
The installation of mysql5.7.18zip version on Win...
When we are writing projects, we often encounter ...
There are three types of virtual hosts supported ...
Table of contents 1. What is front-end state mana...
1. SHOW PROCESSLIST command SHOW PROCESSLIST show...
How to implement the "Set as homepage" ...
Many times when learning web page development, th...
Table of contents Method 1: Routing meta informat...
1. First, use springboot to build a simple dubbo ...
Often you will encounter a style of <a> tag...
1.Write in front: As a lightweight virtualization...
Table of contents Creating OAuth Apps Get the cod...
The specific code for JavaScript to implement the...
Table of contents Preface cause Phenomenon why? A...
When updating a record in MySQL, the syntax is co...