Recently studied docker build Jenkins Sonar process, the goal is to understand docker deployment, Jenkins assembly line and sonar quality monitoring and other build processes, belongs to self-study. Due to a lot of pits encountered in the construction process, although many procedures on the Internet are almost the same, but it may be because of the construction environment, the construction time version and other problems, many problems are not clear enough, according to the problems encountered in the construction project, here is a summary and discussion with you.
First, install a local VIRTUAL machine (VM15 key is not provided here).
Download the centos system (centos is easier to operate than Red Hat, so use centos)
Install the centos system on the VM and set the login name and password
(If you do not want to operate on the VM, you can use ifconfigs to check the IP and log in using other tools. I use Xshell to command the operation.)
Knowing this IP will be used in future Web pages.
Installing the VM and system is a basic operation. Without going into too much detail, the docker installation will begin.
(Many of the commands are from online gods, all verified)
Docker installation command: Delete old versions of Docker (if not, Yum install -y yum-utils yum install -y yum-utils yum install -y yum-utils Lvm2: yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo updated version yum makecache installation dockeryum - y install docker - ce In this process, centos will have an error, Package Docker-ce-3:19.03.12-3.el7.x86_64 requires Containerd. IO >= 1.2.2-3, But none of the providers can be installed Yum install https://download.docker.com/linux/fedora/30/x86_64/ stable/Packages/containerd. IO - 1.2.6-3.3 fc30. X86_64. RPM Yum -y install docker-ce Yum -y install docker-ce Start docker service docker start Check the docker version information No error indicates that Docker was successfully installed and startedCopy the code
Through the above steps, you can complete the installation of docker this installation is only suitable for centos system installation docker other not pro test!
In the next chapter we discuss Jenkins installation.