How to solve the problem that the yum command is invalid during Docker installation?
Using yum related commands will report an error. This problem should be a network connection problem. Let’s start solving this problem.
1. Look at the information in the ifcfg-ens33 file
Enter in the command line vi /etc/sysconfig/network-scripts/ifcfg-ens33
You can see the following information
##2. Change the no after ONBOOT to yes
then save and exit
3. Restart the virtual machine after modification
After restarting, enter yum groupinstall "X Window System" on the command line, and enter y# whenever you encounter a choice.
##4. After restarting, enter yum groupinstall "X Window System"Explain that the commonly used yum installation method is yum install. This time, "X Window System" was used. yum groupinstall, what is the difference between these two commands?
yum provides two ways to install software1. yum install installs a single software and its dependencies
2. yum groupinstall installs An installation package contains many individual software and the dependencies of individual software.
Related recommendations:
The above is the detailed content of How to solve the problem that the yum command is invalid during Docker installation. For more information, please follow other related articles on the PHP Chinese website!