Docker & Docker Hub
本文导语: Docker & Docker Hub1.Docker Chinese community2.Docker & Docker Governance3.Namespaces & Cgoups4.Storage Drive Kernel -> AUFS5.Docker Hub & Docker Registry6.Docker Registry API7.Community Version Docker Hub8.Docker Remote API9.Dockerfile10.OpenSource Projects Base DockerAbout Docke...
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
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.pid namespace
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 To Deploy Docker Registry?
https://github.com/dotcloud/docker-registry
docker run -p 5000 samalba/docker-registry
Docker Registry API -> Push
Docker Registry API -> Pull
Golang Version Docker 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 Drone
iis7站长之家 lts from ubuntu: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