Docker stand-alone installation

Source: Internet
Author: User
Tags commit centos
Overview:
Docker is an open-source engine that makes it easy to create a lightweight, portable, self-sufficient container for any application. Developers who compile tests on notebooks can be deployed in batches in a production environment, including VMS (virtual machines), bare metal, OpenStack clusters, and other underlying application platforms.

Docker Usage Scenario scenario:
1) Automated packaging and publishing of Web applications;
2) Automated testing and continuous integration, release;
3) Deploy and tune databases or other background applications in a service-oriented environment;
4) Build your own PAAs environment by compiling from scratch or by extending your existing OpenShift or cloud foundry platform.

The Docker system has two programs:

Docker server and Docker client. Where the Docker server is a service process that manages all the containers. The Docker client acts as a remote controller on the Docker server, which can be used to control Docker's service-side processes. In most cases, the Docker server and client are running on a single machine.

Docker supports almost all Linux distributions and also supports MAC and Windows.

The installation methods of each operating system can be accessed:

https://docs.docker.com/engine/installation/
Docker is divided into open source free CE (Community Edition) version and charged EE (Enterprise Edition) version.

Official website: https://www.docker.com/get-docker
System Requirements
If you use CentOS installation, you need the CENTOS7 level above, the official website is described as follows:
To install the Docker CE, you need a maintained version of CentOS 7. Archived versions aren ' t supported or tested.
The Centos-extras repository must is enabled. This repository are enabled by default, but if you have disabled it, you need to re-enable it.

Currently, the kernel in the CentOS-only release version supports Docker.

Docker runs on CentOS 7 and requires a system of 64 bits and a system kernel version of 3.10 or more.

If you are using a virtual machine installation, you need to support 64-bit system installation of the virtual machine, if the virtual machines only support 32-bit installation, you need to turn on virtualization, the specific operation can refer to the previous article:

http://blog.csdn.net/vtopqx/article/details/78788208
CentOS Download 64-bit version
Http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1708.iso
Docker requires that the kernel version of the CentOS system is above 3.10, and check the prerequisites on this page to verify that your CentOS version supports Docker.
View your current kernel version with the UNAME-R command
[Root@localhost ~]# Uname-r
3.10.0-693.el7.x86_64

install with Yum (CentOS 7)

Note: After installing the CENTOS7, you can use the default Yum source for installation, if you manually change other sources, such as NetEase source, you may not be able to install.

[root@localhost ~]# yum-y Install Docker
Start the Docker backend service

[root@localhost ~]# Service Docker start

You can use the Docker command when the boot is complete

[Root@localhost ~]# Docker version
Client:
 version:         1.12.6
 API version:     1.24
 Package version:docker-1.12.6-68.gitec8512b.el7.centos.x86_64
 Go version:      go1.8.3
 Git commit:      ec8512b/ 1.12.6
 Built:           Mon Dec 16:08:42
 os/arch:         linux/amd64

Server:
 Version:         1.12.6
 API Version:     1.24 package
 version:docker-1.12.6-68.gitec8512b.el7.centos.x86_64
 Go Version:      go1.8.3
 Git commit:      ec8512b/1.12.6
 Built:           Mon Dec 16:08:42
 os/arch:         LINUX/AMD64

The above simply installs the Docker,

This requirement is supported by installing Docker's primary or system kernel, such as: The kernel version is above 3.10 to support Docker.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.