Docker introduction and the use of domestic mirror source installation Docker__docker

Source: Internet
Author: User
Tags docker hub docker run
Introduction of Docker

Docker is a lightweight virtualization technology based on Linux Container, using Aufs (Union File System), a cross-platform, portable container solution offered by DotCloud, DotCloud was first released in 2013 , has been developing rapidly in recent years. Compared with traditional VMS, Docker has the following advantages:


1, lightweight, fast start.
2, portable, cross-platform, implementation "build once, run anywhere."
Second, Docker components
The Docker is composed of several core components:
1, Docker client and server.
2, Docker mirror.
3, Registry

4. Docker container

1.docker client and server.


Docker is based on the C/S architecture, as shown in the graph, Docker client sends to Docker server or daemon
A command request is executed and the server or daemon executes the command and returns the result.
2.docker Mirroring
Mirroring is the foundation for building a docker world, when you run a container to specify a mirror, you can
Mirrors are considered the source code of the container,
3.registry
Registry is the repository for mirroring.
4.docker container
The container is started based on mirroring, and in total, the Docker container is:
A. A mirrored format
B. A range of standard operations
C. An implementation environment

Third, some Docker resources

Docker official homepage (http://www.docker.com)
Docker Hub (http://hub.docker.com)
Docker Official blog (http://blog.docker.com)
Docker Official document (http://docs.docker.com)
Docker Quick Start Guide (http://www.docker.com/tryit/)
Docker GitHub source code (Https://github.com/docker/docker)
Docker Forge collects a variety of Docker tools, components, and services (Https://github.com/dockerforge)
Docker's StackOverflow FAQ Home (Http://stackoverflow.com/search?q=docker)

Iv. installation of Docker
The Docker team recommends deploying Docker in Ubuntu or Red Hat host hosts, which provide the installable packages directly in the two Linux distributions.
1. First of all, to introduce the prerequisites for installing Docker:
(1) A computer running a 64-bit CPU architecture (currently only supports x86_64 and AMD64 systems). Note that Docker currently does not support 32-bit CPUs.
(2) Linux systems running Linux 3.8 or later, the lower version of the system can run Docker, but the results will be different. If your system version is low, upgrade a HA kernel.
(3) The kernel must support one of the following storage drives: Device Manager, Aufs, VFS, btrfs, default storage driver for Device Manager
(4) The kernel must support and open the Cgroup and namespace (namespace) functionality.
Here we choose to install Docker in the Ubuntu (16.04 LTS) system
2. How to check if your Linux system can install Docker
(1) Check the kernel version first
$ uname-a
Linux ubuntu 4.8.0-36-generic #36 ~16.04.1-ubuntu SMP Sun Feb 5 09:39:57 UTC 2017x86_64 x86_64 x86_64gnu/linux
(2) Check device Mapper
$ sudo grep device-mapper/proc/devices
253 Device-mapper
If Device-mapper information is not available, we can load the modprobe command dm_mod
$ sudo modprobe dm_mod
3. Install Docker

This step is critical, if not in the celestial a command can be handled: $ sudo apt-get install-y Docker.io, but we'd better use the domestic mirror source to install Docker, otherwise the installation speed is really slower than the tortoise.

Here we use the Daocloud mirror site (a domestic company), high-speed installation Docker, here attached Daocloud official installation document: Http://guide.daocloud.io/dcs/docker-9152677.html
$ Curl-ssl Https://get.daocloud.io/docker | Sh

After installing Docker, you can use the Docker Info command to confirm that Docker is installed and running properly.
$ sudo docker info
containers:0
running:0
paused:0
stopped:0
images:0
Server version:1.12.6
Storage Driver:aufs
.....................
Use the sudo systemctl status Docker command to view the Docker run status

$ sudo systemctl Status Docker
Docker.service-docker application Container Engine
loaded:loaded (/lib/s Ystemd/system/docker.service; Enabled Vendor preset:enabled)
Active:active (running) since Sat 2017-02-25 06:40:41 PST; 9min ago
Docs:https://docs.doc ker.com
Main pid:8173 (dockerd)
tasks:16
memory:20.0m
cpu:503ms
Cgroup:/system.slice/docker.servi Ce
... ......... ..........
You can also use the sudo systemctl stop/start/restart Docker to stop/start/restart the Docker service.

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.