马全一:Docker & Docker Hub

2015-11-11 16:55:00
先知
转贴
17811
Agenda
1.Docker Chinese community
2.Docker & Docker Governance
3.Namespaces & Cgoups
4.Storage Drive Kernel -> AUFS
5.Docker Hub & Docker Registry
6.Docker Registry API
7.Community Version Docker Hub
8.Docker Remote API
9.Dockerfile
10.OpenSource Projects Base Docker

Who am I?
马全一
Meaglith Ma
Docker中文社区创始人
dockboard.org & docker.cn
[微博] @马全一
[G+] google.com/+MeaglithMa [Twitter] @genedna
[Email]  genedna@gmail.com
[Book] Docker Open Bookgithub.com/ genedna/dockeropenbook

About Docker Community in China
dockboard.org
https://github.com/dockboard

System Virtualization VS Container Virtualization

What’s Docker ?
Docker Hub +

DGAB -> Docker Governance Advisory Board
1.DGAB or Fond?
2.Seats for commit, no fee or sponsorship. 
3.Membership for 12 months, 24 months max. 
4.DGAB is not charge.

How to use Docker?

What’s namespaces?
1.pidnamespace
2.net namespace
3.mnt namespace
4.uts namespace
5.ipc namespace

What’s cgroups
1.CPU
2.Memory
3.Blkio
4.Net_cls
5.Net_prio
6.Device

What’s AUFS?

Docker Local Storage Path->/var/lib/docker

Docker Hub &Registry Workflow

How ToDeploy Docker Registry?

https://github.com/dotcloud/docker-registry
dockerrun -p 5000samalba/docker-registry

Docker Registry API -> Push

Docker Registry API -> Pull

GolangVersionDocker Registry

Docker Remote API -> Image & Container
1.1045 /JNBHFT/DSFBUF
2.(&5  /JNBHFT/(OBNF)/IJTUPSZ
3.1045 /JNBHFT/(OBNF)/JOTFSU
4.(&5 /JNBHFT/(OBNF)/KTPO
5.(&5 /JNBHFT/KTPO
6.1045  /JNBHFT/(OBNF)/QVTI
7.%&-&5& /JNBHFT/(OBNF)
8.(&5 /JNBHFT/TFBSDI
9.1045 /JNBHFT/(OBNF)/UBH

1.1045  /DPOUBJOFST/(JE)/BUUBDI
2.(&5  /DPOUBJOFST/(JE)/DIBOHFT
3.1045  /DPOUBJOFST/(JE)/DPQZ
4.1045 /DPOUBJOFST/DSFBUF
5.(&5 /DPOUBJOFST/(JE)/FYQPSU
6.(&5 /DPOUBJOFST/(JE)/KTPO
7.1045 /DPOUBJOFST/(JE)/LJMM
8.(&5 /DPOUBJOFST/KTPO 9.(&5  /DPOUBJOFST/(JE)/MPHT
10.1045  /DPOUBJOFST/(JE)/QBVTF
11.%&-&5&  /DPOUBJOFST/(JE)
12.1045 /DPOUBJOFST/(JE)/SFTUBSU
13.1045 /DPOUBJOFST/(JE)/TUBSU
14.1045 /DPOUBJOFST/(JE)/TUPQ
15.(&5 /DPOUBJOFST/(JE)/UPQ
16.1045  /DPOUBJOFST/(JE)/VOQBVTF
17.1045 /DPOUBJOFST/(JE)/XBJU

What’s Dockerfile ?
# VERSION 0.1
# DOCKER-VERSION  0.7.3
# AUTHOR:Sam Alba <sam@docker.com>
# DESCRIPTION:Image with docker-registry project and dependecies
# TO_BUILD:docker build -rm -t registry .
# TO_RUN:docker run -p 5000:5000 registry

# Latest Ubuntu LTS fromubuntu:14.04
# Update
run apt-get update run apt-get -y upgrade
# Install pip
run apt-get -y install python-pip
# Install deps for backports.lzma (python2 requires it)
run apt-get -y install python-dev liblzma-dev libevent1-dev add . /docker-registry
add ./config/boto.cfg /etc/boto.cfg
# Install core
run pip install /docker-registry/depends/docker-registry-core
# Install registry
run pip install file:///docker-registry#egg=docker-registry[bugsnag]
env DOCKER_REGISTRY_CONFIG /docker-registry/config/config_sample.yml env SETTINGS_FLAVOR dev
expose 5000
cmd exec docker-registry

OpenSource Projects Base Docker
1.PaaS : Tsuru/Octohost/Deis/StackDock/Flynn/ tusum/Dokku/Spin-Docker/Peas/Tutum
2.Private Registry: quay.io/orchard/docker.cn 3.OS: CoreOS/Atomic
4.CI: Drone/Shippable 5.Book: dockerbook.com 6.Kubernetes



发表评论
叁 乘 拾 =
评论通过审核后显示。
文章分类
联系方式
联系人: 王春生
Email: chunsheng@cnezsoft.com