docker container technology first post entry

 

Container

  The container is a basic tool, refers to any tool can accommodate other items.

 

Linux Namespaces (docker container technology is mainly achieved by isolation 6)

namespace    System call arguments    Isolate content   Kernel version  
UTS   CLONE_NEWUTS Host and domain name 2.6.19
IPC CLONE_NEWIPC Information, message queues and shared memory 2.6.19
PID CLONE_NEWPID Process number 2.6.24
Network CLONE_NEWNET

Network equipment, network stack, ports, etc.

2.6.29
Mount CLONE_NEWNS Mount point (file system) 2.4.19
User COLNE_NEWUSER Users and user groups 3.8

 

 

 

 

 

 

 

Control Groups, CGroups control group (typically used to restrict the use of resources) the system-level resources into a plurality of groups, and the amount of resources within each group is assigned or allocated to a different user-space process.

  blkio: IO block device

  cpu: CPU

  cpuacct: CPU resource usage reports

  cpuset: a collection of multi-processing CPU on the platform

  devices: Device Access

  freezer: suspend or resume the task

  memory: Memory Usage Report

  perf_event: task group from the unified performance test

  net_ds: data cgroup tasks created packet class identifier

 

A tool LXC (LinuX Container) first to achieve art container (container belongs to a technical linux kernel)

  When the container is created using lxc-create, it will not activate the template to allow you to install, but is connected to the server to download the template match you wear a mirror, so the mirror onto the local and container-based image to boot. When a user to control a container used.

 

docker LXC is actually an enhanced version of a management tool, but docker is based mirroring to achieve, and LXC is based on a template to achieve.

 

Scheduling tool

compose: single arrangement

machine + swarm + compose a cluster arrangement

mesos + marathhon 

kubernetes

 

Guess you like

Origin www.cnblogs.com/guniang/p/11592146.html