Install CentOS7 virtual machine, configure docker suite

CentOS7 is slightly more complicated than the one-click installation of ubuntu. Some small partners follow the next step, and the next step is to complete the installation. They found that there is no graphical interface. In the pure command line, many small partners are not suitable, here I Record the installation process of centos7 in vmware, and those without centos7 installation experience can refer to it

1. Open vmware, create a virtual machine, select the CD, next step##

2. Select traditional BIOS

3. Custom settings##

4. Choose where to store the virtual machine, store##

5. Custom memory is 2G, disk is 40GB

6. Boot, select install CentOS 7

7. Choose a language##

8. Select disk##

9. Set up pre-installed software##

10. Save memory, close kdump

11. Turn on the network, set the host name##

12. start installation##

13. Set the root user password, create a user with sudo permissions and set the password##

Every time I get a brand new centos mirror, the first thing is to replace the domestic source for centos, add a new yum source, and vomit, the default yum source really does not support common software, such as I want to install A python-pip, sorry, no!

Step 1: Replace 清华yum source

1.1 Backup the old yum source###

sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

1.2 Write the following to /etc/yum.repos.d/CentOS-Base.repo

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use thisfor CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you,as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[ base]
name=CentOS-$releasever - Base
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/os/$basearch/
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

# released updates
[ updates]
name=CentOS-$releasever - Updates
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/updates/$basearch/
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

# additional packages that may be useful
[ extras]
name=CentOS-$releasever - Extras
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/extras/$basearch/
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

# additional packages that extend functionality of existing packages
[ centosplus]
name=CentOS-$releasever - Plus
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/centosplus/$basearch/
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

1.3 Refresh yum source###

yum clean all && yum makecache && yum update

Step 2: Install Ali epel source##

yum -y install epel-release
wget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo
# Refresh yum source
yum clean all && yum makecache && yum update

At this point, we can install python-pip happily, yum install python-pip

Step 3: Install docker and docker-compose

1. Install docker

# Install docker through yum source
sudo yum -y install docker
# Start docker
sudo systemctl start docker
# Self-start
sudo systemctl enable docker

2. Install docker-compose

sudo pip install docker-compose
# Check after successful installation
sudo docker-compose --version

3. Docker China official mirror acceleration###

{" registry-mirrors":["https://registry.docker-cn.com"]}

sudo service docker restart

Recommend a few fun docker services to you:

Recommended Posts

Install CentOS7 virtual machine, configure docker suite
VMwareWorkstation10.0 install CentOS7.0 virtual machine
CentOS 7 install Docker
CentOS7 install Docker
Centos7 install Docker
Centos7 install docker18
centos7 install docker
CentOS 6 install Docker
Centos8 install Docker
Install Docker on Centos7
CentOS 7 install Docker service
CentOS 8-dnf install docker
install Docker on centos6.5
CentOS 7 install Docker CE
CentOS 7 install KVM and create a virtual machine
Install ubuntu on virtual machine
Install KVM on CentOS 7 and create a virtual machine
Linux CentOS 7 virtual machine clone
Centos6.5 install and configure mongodb
Virtual machine VirtualBox-5.1 install ubuntu16.0.1
CentOS 6.8 virtual machine installation details
Centos configure multiple virtual IP
How to install Centos operating system on VMware virtual machine
Install MySql with Docker in CentOS7
Install and configure Docker in Ubuntu
Container study notes CentOS7 install Docker
CentOS 8 - install and configure NFS service
Install and use docker under CentOS 6.8
Install Centos7 operating system in Docker
CentOS Minimal install and configure TIPS
Install and configure FreeIPA in Centos7
1.5 Install Centos7
Install Ubuntu 18.04 in the virtual machine VMware
Deploy Docker and configure Nginx in CentOS
Install R package on UBUNTU virtual machine
Install Docker CE in yum under CentOS 7
Talk about | Install docker with a virtual machine on win10 home edition
Centos6 install Python2.7.13
Centos7.3 install nginx
VMware Fusion install CentOS7 and configure the network
CentOS7.2 install Mysql5.7.13
CentOS install Redmine
How to install and configure Elasticsearch on CentOS 7
Centos7 install Python 3.6.
CentOS7 install MySQL
Centos7 install protobuf
How to install and use Docker on CentOS 7
CentOS7 install GlusterFS
ubuntu18.04 install docker
CentOS 7.4 install Zabbix 3.4
Centos6.5 install Tomcat
CentOS install Python 3.6
Solve the problem that Centos8 cannot install docker
Vmware install CentOS6
centos7 install docker-ce 18.01.0
CentOS 7.2 install MariaDB
CentOS 7 install Hadoop 3.0.0
How to install and configure VNC on CentOS 8
Centos 7.6 install seleniu
CentOS 7.3 install Zabbix3
CentOS install mysql