[Resolved] CentOS7 use yum install Docker error: can not find a valid baseurl for repo: base / 7 / x86_64

Have to say, Dockerit requires CentOSthe system kernel version above 3.10, which make some people a headache, while you want to view a specific version can use the following command

uname -r

Of course, CentOS 6.8the version can be installed Docker, but the specific command operation CentOS7is quite different, specific installation process, reference may docker document , there is not an overview, when learning Linux before beginning until now I CentOS version 6.1, apparently installed not Docker, because CentOS 6.8the following versions universal system kernel version 2.6.32-XXXversion, referred to as 2.6version had

In short, CentOS installation Docker requirements are as follows:

1, Docker running on CentOS 7, the system of claim 64, kernel version 3.10 or more.

2, Docker run CentOS-6.5 or more, and 64-bit system requirements, system or kernel version 2.6.32-431 later.

About Centos7 image download

If you still use centos6for centos7image download annoyance? Yes, the thief slow speed, here is a download centos7mirror Ali cloud site: http://mirrors.aliyun.com/centos/7/isos/x86_64/
Here Insert Picture Description
various versions of the ISOimage file description:

CentOS-7-x86_64-DVD- 1708.iso standard installation version (recommended)
CentOS-7-x86_64-Everything-1708.iso full version integrates all the software (to be used to supplement the system software or filling local mirror)
CentOS-7 -x86_64-LiveGNOME-1708.iso GNOME desktop version of
CentOS-7-x86_64-LiveKDE- 1708.iso KDE desktop version of
CentOS-7-x86_64-minimal- 1708.iso Lite software comes with a minimum of
CentOS-7-x86_64- NetInstall-1708.iso network installation version (installed from a network or the rescue system)

About can not find a valid baseurl for repo: base / 7 / x86_64 problem

First, this is a network problem, you need to troubleshoot, to find the problem, use the yumcommand, can not resolve yumthe source, an error occurs. Specific solutions can refer to [linux] CentOS 7 error: yum command error "Can not find a valid baseurl for repo: base / 7 / x86_6"

If the above article has not been well addressed here in a small program, perhaps a little touched.

Configure network connections

This exception essential reason is the problem of the network, configure the network connection is very important therefore, to briefly talk about bridging mode , NAT mode , host mode is not mentioned, too low a ...

Bridge Mode:

Advantage: Linux can and other communication systems (such as Windows systems), as long as the system is the same network environment can communicate with each other

 

Disadvantages: easy to produce IP conflict

 

Analysis:
1, the device will use the bridge mode while connected to the same local area network, that is, the top three will be the same IP address, while the student is connected to a LAN can communicate with each other naturally, different operating systems unimpeded!
2, IP conflict causes: for example 192.168.0.XXX, XXX where the range is 255, 255, and subtracting 1, 253 ways i.e., if more than 253 will produce IP conflict. That is up to 253 students while connected to a LAN, and even a few more students will have IP conflicts

NAT mode

Advantages: no IP conflict, not part of either IP, and can access to the external network

 

Cons: Even if it can not access other systems in the same local area network, that will not be completed communicate with each other , only one-way communication

 

Analysis:
NAT using network address translation mode, assuming that Xiao Ming Windows system installed virtual machine has a Linux system, the top three IP addresses and NAT mode will be the top three IP address is the same as Windows itself, but on the LAN and external no longer the same LAN, and naturally does not produce IP conflict

Summary: More recommended to use NAT mode, bridge mode is also very good of course, depends on the specific needs, and both preference!

Specific reference may be below this figure, this figure is a Korean teacher of painting, in order to highlight the main meaning of the expression to achieve a user-friendly, then add some of his own description, and the use of a uniform color to better describe
Here Insert Picture Description
Knowing more select configure network connection time
Here Insert Picture Description
and the focus is
Here Insert Picture Description
once wrong, it will display an error: cannot find a valid baseurl for repo: base/7/x86_64, network anomalies, it would be the use of the computer network caused by abnormal white knowledge is weak, hereby filled pit, ha ha ha ....

If this article there is a little bit of help to you, then please point a chant praise, thank you ~

Finally, if there is insufficient or is not correct, please correct me criticism, grateful! If you have questions please leave a message, the absolute first time to reply!

I welcome you to focus on the public number, there are some java learning materials and a large wave of java e-books, such as Zhou Zhiming teacher depth java virtual machine, java programming ideas, the core technology volume, Westward design patterns, java concurrent programming combat ... .. is a java Bible, do not say fast car on Tomcat, ye who go! The main thing is to explore technology, yearning technology, the pursuit of technology, said good pots Friends is coming Oh ...

Here Insert Picture Description

Guess you like

Origin www.cnblogs.com/yichunguo/p/12147288.html