In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to install and use Docker, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Introduction to Docker
Docker is an open source application container engine; it is a lightweight container technology; Docker supports compiling the software into an image; then various software in the image are configured to publish the image, and other users can use the image directly; the running image is called a container, and the container startup is very fast.
Docker is somewhat similar to the operating system, but it is smaller than the operating system. The following diagram illustrates the relationship between Docker and the operating system.
Installation of Docker
In the past, Docker could not be well supported on Windows systems, but now Docker can be well installed on Windows Server systems.
In order to facilitate installation, we can install the virtual machine on the personal computer, install the corresponding Linux, Windows, MacOS and other systems, and then install Docker in the virtual machine.
The software to install the virtual machine is VMWare, VirtualBox and so on. Most people have used VMWare, so I won't elaborate on its usage here. VirtualBox is lighter and smaller than VMWare, so I usually use VirtualBox.
About VirtualBox software, friends who want to download can follow my official Wechat account and reply "VirtualBox" to download.
VirtualBox installation method I will not say, the whole installation process is very simple, directly to the next step, the next step on it. After installing VirtualBox, we import the system we need. I'll take centos as an example to illustrate the installation of Docker.
Centos7 software download, the same follow my official Wechat account, reply "centos7" can be downloaded.
After importing the centos7-xttblog.ova we downloaded, start the centos7 system of the virtual machine. Note that after installation, you need to set the virtual machine network as a bridged network, and select the corresponding wireless or wired network card. So that the virtual machine can connect to the network normally. There are no netizens can look for the corresponding learning materials on the website.
Install docker on the linux virtual machine
After doing some of the preparatory work above, we started the real Docker installation. The installation steps are as follows:
The first step is to check the kernel version of the Linux system. The kernel required by Docker must be 3.10 or above. The command to check the kernel version is as follows:
Second, if the Linux version is above 3.10, then we can install docker. The command to install Docker is as follows:
During the installation process, you will be prompted to enter y and we enter y to confirm the installation.
The third step, after the installation is complete, we can now operate Docker. Here is the command to start docker:
one
two
three
[root@localhost]
[root@localhost]
Docker version 1.12.6, build 3e8e77d/1.12.6
After the startup is complete, we can use the docker-v command to view the version information of the installed Docker.
The fourth step is to set Docker to boot automatically. The relevant commands are as follows:
one
two
[root@localhost]
Created symlink from / etc/systemd/system/multi-user.target.wants/docker.service to / usr/lib/systemd/system/docker.service.
Finally, let's talk about how to stop docker. You only need to use systemctl stop docker to stop Docker.
After watching the whole process, does it feel very simple? It is true that the installation of Docker is easy, but the use and principles of Docker are not easy to grasp. For the practical application of Docker, we will learn it with specific Spring boot later.
The above is all the contents of the article "how to install and use Docker". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.