User Tools

Site Tools


projects:docker_intro

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
projects:docker_intro [2016/03/13 18:47] – created mkuciaprojects:docker_intro [2016/03/13 20:45] – [Union filesystem] mkucia
Line 10: Line 10:
 <comparison image> <comparison image>
 ==== Union filesystem ==== ==== Union filesystem ====
-advanced multi layered unification filesystem +aufs (advanced multi layered unification filesystem
-<BOOTFS>+ 
 +<html> 
 +<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" id="svg2" viewBox="0 0 368.54957 398.96048" height="112.59551mm" width="104.01288mm"><defs id="defs4" /><metadata id="metadata7"><rdf:RDF><cc:Work  rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title/></cc:Work></rdf:RDF></metadata> <g transform="translate(-41.497751,-13.818168)" id="layer1">< transform="matrix(1.5714286,0,0,1.5714286,-81.428569,-772.7784)"  id="g4299"><path  id="path4169"  style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"  d="m 210,712.3622 90,-20 0,30 -90,20 m -120,-60 120,60 0,-30 -120,-60 z" /><path  style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"  d="m 300,692.3622 -40,-20"  id="path4175" />< id="g4207"  transform="translate(0,60.000005)"><path id="path4209" style="fill:#c6e9af;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="m 130,582.3622 90,-20 0,30 -90,20 m -40.000003,-20 40.000003,20 0,-30 -40.000003,-20 z m 3e-6,-30 90,-20 40,20 -90,20" /><text xml:space="preserve" style="font-style:normal;font-weight:normal;font-size:8px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="text4217" y="537.09076" x="95" transform="matrix(1,0.46024094,0,1,0,0)"><tspan id="tspan4219" x="95" y="537.09076">Debian</tspan></text></g><text  xml:space="preserve"  style="font-style:normal;font-weight:normal;font-size:8px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"  id="text4217-4"  y="632.96942"  x="94.64286"  transform="matrix(1,0.46024094,0,1,0,0)"><tspan id="tspan4219-3" x="94.64286" y="632.96942">Kernel  bootfs</tspan></text>  <g  transform="translate(0,30.000005)"  id="g4243"><path d="m 130,582.3622 90,-20 0,30 -90,20 m -40.000003,-20 40.000003,20 0,-30 -40.000003,-20 z m 3e-6,-30 90,-20 40,20 -90,20" style="fill:#decd87;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="path4245" /><text transform="matrix(1,0.46024094,0,1,0,0)" x="95" y="537.09076" id="text4247" style="font-style:normal;font-weight:normal;font-size:8px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" xml:space="preserve"><tspan y="537.09076" x="95" id="tspan4249">emacs</tspan></text></g>  <g  id="g4251"  transform="translate(0,4.7244096e-6)"><path id="path4253" style="fill:#e9c6af;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="m 130,582.3622 90,-20 0,30 -90,20 m -40.000003,-20 40.000003,20 0,-30 -40.000003,-20 z m 3e-6,-30 90,-20 40,20 -90,20" /><text xml:space="preserve" style="font-style:normal;font-weight:normal;font-size:8px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="text4255" y="537.09076" x="95" transform="matrix(1,0.46024094,0,1,0,0)"><tspan id="tspan4257" x="95" y="537.09076">Apache</tspan></text></g>  <g  transform="translate(0,-29.999995)"  id="g4259"><path d="m 130,582.3622 90,-20 0,30 -90,20 m -40.000003,-20 40.000003,20 0,-30 -40.000003,-20 z m 3e-6,-30 90,-20 40,20 -90,20" style="fill:#ff8080;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="path4261" /><text transform="matrix(1,0.46024094,0,1,0,0)" x="95" y="537.09076" id="text4263" style="font-style:normal;font-weight:normal;font-size:8px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" xml:space="preserve"><tspan y="537.09076" x="95" id="tspan4265">Writable</tspan></text></g>  <g  transform="translate(40,80.000005)"  id="g4267"><path d="m 130,582.3622 90,-20 0,30 -90,20 m -40.000003,-20 40.000003,20 0,-30 -40.000003,-20 z m 3e-6,-30 90,-20 40,20 -90,20" style="fill:#55ffdd;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="path4269" /><text transform="matrix(1,0.46024094,0,1,0,0)" x="95" y="537.09076" id="text4271" style="font-style:normal;font-weight:normal;font-size:8px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" xml:space="preserve"><tspan y="537.09076" x="95" id="tspan4273">busybox</tspan></text></g>  <g  id="g4275"  transform="translate(40,50.000005)"><path id="path4277" style="fill:#afafe9;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="m 130,582.3622 90,-20 0,30 -90,20 m -40.000003,-20 40.000003,20 0,-30 -40.000003,-20 z m 3e-6,-30 90,-20 40,20 -90,20" /><text xml:space="preserve" style="font-style:normal;font-weight:normal;font-size:8px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="text4279" y="537.09076" x="95" transform="matrix(1,0.46024094,0,1,0,0)"><tspan id="tspan4281" x="95" y="537.09076">Writable</tspan></text></g>  <g  transform="translate(80.000003,100)"  id="g4283"><path d="m 130,582.3622 90,-20 0,30 -90,20 m -40.000003,-20 40.000003,20 0,-30 -40.000003,-20 z m 3e-6,-30 90,-20 40,20 -90,20" style="fill:#c6e9af;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="path4285" /><text transform="matrix(1,0.46024094,0,1,0,0)" x="95" y="537.09076" id="text4287" style="font-style:normal;font-weight:normal;font-size:8px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" xml:space="preserve"><tspan y="537.09076" x="95" id="tspan4289">Debian</tspan></text></g>  <g  transform="translate(80,70.000005)"  id="g4291"><path d="m 130,582.3622 90,-20 0,30 -90,20 m -40.000003,-20 40.000003,20 0,-30 -40.000003,-20 z m 3e-6,-30 90,-20 40,20 -90,20" style="fill:#eeaaff;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="path4293" /><text transform="matrix(1,0.46024094,0,1,0,0)" x="95" y="537.09076" id="text4295" style="font-style:normal;font-weight:normal;font-size:8px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" xml:space="preserve"><tspan y="537.09076" x="95" id="tspan4297">Writable</tspan></text></g></g></g></svg>  
 +</html>
  
 ===== Docker Family ===== ===== Docker Family =====
Line 20: Line 23:
 Docker Engine runs on Linux to create the operating environment for your distributed applications. Docker Engine runs on Linux to create the operating environment for your distributed applications.
  
-==== Docker Daemon ====+=== Docker Daemon === 
 +Persistent Linux service that manages containers in the system. 
 +=== Docker Client === 
 +Utilises Docker API to talk with the daemon.
  
 ==== Docker Machine ==== ==== Docker Machine ====
 Automate Docker provisioning. Sets up docker or different systems (cloud, mac, windows) Automate Docker provisioning. Sets up docker or different systems (cloud, mac, windows)
 +
 ==== Docker Registry ==== ==== Docker Registry ====
 Docker Registry is an open source application dedicated to the storage and distribution of your Docker images. Docker Registry is an open source application dedicated to the storage and distribution of your Docker images.
Line 44: Line 51:
 ==== Docker Hub ==== ==== Docker Hub ====
 Docker Hub is a cloud hosted service from Docker that provides registry capabilities for public and private content. Docker Hub is a cloud hosted service from Docker that provides registry capabilities for public and private content.
 +
 +==== Docker Toolbox ====
 +Installer for Docker tools on Windows and Mac.
 +
 +==== boot2docker ====
 +Minimalistic Linux distribution used to run Docker on Windows and Mac.
  
 ===== Concepts ===== ===== Concepts =====
  
 +==== Image ====
 +
 +==== Container ====
 +Instance of the image.
 +> The concept is borrowed from Shipping Containers, which define a standard to ship goods globally. Docker defines a standard to ship software.
  
 ===== Installation ===== ===== Installation =====
  
-Docker-machine boot 2 docker+  * Install toolbox 
 +  * Setup environment variables accordingly to ''docker-machine env''
  
 ===== Usage ===== ===== Usage =====
 +  * run
 +    * -d
 +    * --name
 +    * -p
 +    * -v
 +    * 
 +  * build (Dockerfile) (python http server)
 +  * attach
 +  * exec
 +  * commit
 +  * export/save
  
-Docker run+===== What next? ===== 
 +  * Volumes 
 +  * Networking 
 +  * Logging 
 +  * Orchestration
  
-Docker build+===== References ===== 
 +https://docs.docker.com/engine/reference/glossary/ 
 +http://developerblog.redhat.com/2016/01/13/a-practical-introduction-to-docker-container-terminology/
  
-Docker exec 
- 
-Docker attach 
- 
-Commit 
- 
-Logi 
- 
-Networking 
- 
-Volumeny 
- 
-Import export 
- 
-===== References ===== 
 https://en.wikipedia.org/wiki/Docker_(software) https://en.wikipedia.org/wiki/Docker_(software)
 https://en.wikipedia.org/wiki/Aufs https://en.wikipedia.org/wiki/Aufs
 https://docs.docker.com/engine/understanding-docker/ https://docs.docker.com/engine/understanding-docker/
-http://developerblog.redhat.com/2016/01/13/a-practical-introduction-to-docker-container-terminology/ 
 https://www.ibm.com/support/knowledgecenter/SS3MQL_1.1.0/manage_services/docker_concepts.dita https://www.ibm.com/support/knowledgecenter/SS3MQL_1.1.0/manage_services/docker_concepts.dita
- 
projects/docker_intro.txt · Last modified: 2016/03/13 21:57 by mkucia