1.centos 7
Installing CentOS 7 from a VM virtual machine under Windows:
vmware-workstation-full-10.0.3-1895310
CentOS 7
2. Requirements
The kernel version of the operating system cannot be less than 3.10
To view the kernel version:
uname -R
3. Installation 3.1 with Yum installation
Need to be connected to the Internet
Yum Update
3.1.2 Join Yum Repo
sudo Tee /etc/yumrepos.d/docker.repo <<-'EOF'[dockerrepo]name =Docker repositorybaseurl=https://yum.dockerproject.org/repo/main/centos/$releasever /enabled=1Gpgcheck=1gpgkey=https:// YUM.DOCKERPROJECT.ORG/GPGEOF
3.1.3 Installing the Docker package
sudo Yum Install Docker-engine
3.1.4 Start the Docker daemon
sudo service docker start
3.1.5 Verify that Docker is installed successfully and run an official test image (Hello-world) inside the container
$sudoDocker Run hello-worldunable toFindImage'hello-world:latest'locally latest:pulling from Hello-World a8219747be10:pull complete 91c95931e552:already exists Hello-World:latest:The image You is pulling has been verified. Important:image verification is a tech-preview feature and should not being relied on to provide security. Digest:sha256:aa03e5d0d5553b4c3473e89c8619cf79df368babd1.7. 1cf5daeb82aab55838d status:downloaded Newer image forhello-world:latest Hello from Docker. This message shows the your installation appears to be working correctly. To generate this message, Docker took the following steps:1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the"Hello-world"image from the Docker Hub. (assuming it is not already locally available.) 3. The Docker daemon created a new container from that imagewhichruns the executable that produces the output is currently reading. 4. The Docker daemon streamed that output to the Docker client,whichsent it to your terminal. To try something Moreambitious, you can run a Ubuntu container with: $ docker run-it ubuntu bash for Moreexamples and ideas, Visit:http://docs.docker.com/userguide/
Displaying the above results indicates that the installation was successful.
3.2 Installing through shell scripts with the Curl tool
sudo Yum Update
3.2.1 Performing Docker installation scripts
$ curl-fssl https://get.docker.com/| sh
3.2.2 Start Docker
sudo service docker start
3.2.3 Verification
sudo Docker run Hello-world
RELATED links:
https://docs.docker.com/engine/installation/linux/centos/
CentOS 7 Installation Deployment Docker