SlideShare a Scribd company logo
Campaign
proposal
Docker.
First steps.
Hack‘n’Tell
Docker against VM’s
- Docker container isn’t a VM
- Docker provides an additional
layer of abstraction of
operating-system-level
virtualization.
- Avoiding the overhead of starting
and maintaining virtual machines
(VMs).
- Provides resource isolation and
allocation benefits, but functions
differently because containers
virtualize the operating system
instead of hardware.
Hack‘n’Tell
Docker components
Docker consists of:
- A server which is a type of
long-running program called a
daemon process (the dockerd
command).
- A REST API which specifies
interfaces that programs can use
to talk to the daemon and instruct
it what to do.
- A command line interface (CLI)
client (the docker command).
Hack‘n’Tell
Docker installation
Your best choice:
https://www.docker.com/community-edition#/download
If you are on Linux (not prod):
https://get.docker.com/
Windows 10 Pro - your best friend.
Mac OS also supported.
Docker CE, Docker EE, Clouds, etc.
Hack‘n’Tell
Docker basic workflow Hack‘n’Tell
- Docker host - bare-metal or
virtual machine where Docker is
installed
- Client - command line interface to
communicate Docker daemon
(may or may not be installed on
the same machine as Docker
daemon).
- Registry - docker image storage
(docker hub, or private storage).
- Image - immutable file, snapshot
of a container.
Docker usage scenarios Hack‘n’Tell
- Setup local service - DB, queue,
portal, etc.
- Test your code - check how your
code works on different versions
of language without installing it on
host machine.
- Delivery - prepare and ship image
with preinstalled something (local
system, clouds).
Docker usage example 1 Hack‘n’Tell
- Setup local postgres service
docker run --name local-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
Docker usage example 2 Hack‘n’Tell
- Setup local wordpres & DB
1) docker run -e MYSQL_ROOT_PASSWORD=XXX -e MYSQL_USER=wpuser -e MYSQL_PASSWORD=XXX -e
MYSQL_DATABASE=wordpress_db -v wpdatabase:/var/lib/mysql --name wordpressdb -d mysql
2) docker run -e WORDPRESS_DB_USER=wpuser -e WORDPRESS_DB_PASSWORD=XXX -e WORDPRESS_DB_NAME=wordpress_db
-p 8081:80 -v wordpress:/var/www/html --link wordpressdb:mysql --name wpcontainer -d wordpress
Docker usage example 2 Hack‘n’Tell
- Check your node js script in different versions
docker run -it --rm --name continer-script -p 8080:8080 -v
/path/to/your/code/folder/on/host:/usr/src/app -w /usr/src/app node:4 node
your-daemon-or-script.js
Docker container not persistent Hack‘n’Tell
- All container images consist of
layers.
- Layers are created via image build
process and they are immutable.
- Container is a new read-write not
persistent layer on top of the
image.
- After container stopped - all
changes inside it will be reset to
the base image state.
- Container state can be saved to
image via command commit
(better not to do this)
Docker usage
Command line Purpose Example
docker pull <image name> Pull image from registry to host docker pull node:latest
docker run <image name> Run container from image docker run ngnix
docker ps
Show all running containers (look here for
container id)
docker ps
docker stop <container id> Stop running container docker stop 4e2802901fd7
docker rm <container id> Remove container docker rm 4e2802901fd7
docker images
Show all images present on host (look here
for image id)
docker images
docker rmi <image id> Remove image from the host docker rmi 3f44455b8f57
docker logs <container id> Logs from container stdout docker logs 4e2802901fd7
docker exec -it <container id>
<command>
Execute command inside container and show
stdout
docker exec -it 4e2802901fd7 ls -l /tmp
Hack‘n’Tell
Docker useful links Hack‘n’Tell
- https://hub.docker.com/ - image
storage
- https://docs.docker.com/ -
documentation, tutorials, api,
etc.
- https://labs.play-with-docker.co
m/ - playground, tutorials
(docker hub registration
required)
- https://docs.docker.com/develo
p/ - good place to continue from
this point
THANK YOU
avasyliev@intersog.com

More Related Content

What's hot

Docker
DockerDocker
How to _docker
How to _dockerHow to _docker
How to _docker
Abdur Rab Marjan
 
Docker toolbox
Docker toolboxDocker toolbox
Docker toolbox
Yonghwee Kim
 
Docker swarm workshop
Docker swarm workshopDocker swarm workshop
Docker swarm workshop
Matthias Noback
 
Plug-ins: Building, Shipping, Storing, and Running - Nandhini Santhanam and T...
Plug-ins: Building, Shipping, Storing, and Running - Nandhini Santhanam and T...Plug-ins: Building, Shipping, Storing, and Running - Nandhini Santhanam and T...
Plug-ins: Building, Shipping, Storing, and Running - Nandhini Santhanam and T...
Docker, Inc.
 
Under the Hood with Docker Swarm Mode - Drew Erny and Nishant Totla, Docker
Under the Hood with Docker Swarm Mode - Drew Erny and Nishant Totla, DockerUnder the Hood with Docker Swarm Mode - Drew Erny and Nishant Totla, Docker
Under the Hood with Docker Swarm Mode - Drew Erny and Nishant Totla, Docker
Docker, Inc.
 
Docker volume
Docker volumeDocker volume
Docker volume
MyoungSu Shin
 
Backend Master | 3.4.2 Deploy - Docker Introduction
Backend Master | 3.4.2 Deploy - Docker IntroductionBackend Master | 3.4.2 Deploy - Docker Introduction
Backend Master | 3.4.2 Deploy - Docker Introduction
Kyunghun Jeon
 
Docker introduction for the beginners
Docker introduction for the beginnersDocker introduction for the beginners
Docker introduction for the beginners
Juneyoung Oh
 
Docker Networking - Boulder Linux Users Group (BLUG)
Docker Networking - Boulder Linux Users Group (BLUG)Docker Networking - Boulder Linux Users Group (BLUG)
Docker Networking - Boulder Linux Users Group (BLUG)
Dan Mackin
 
The state of the swarm
The state of the swarmThe state of the swarm
The state of the swarm
Mathieu Buffenoir
 
JOSA TechTalk: Introduction to docker
JOSA TechTalk: Introduction to dockerJOSA TechTalk: Introduction to docker
JOSA TechTalk: Introduction to docker
Jordan Open Source Association
 
Docker 1.11 Presentation
Docker 1.11 PresentationDocker 1.11 Presentation
Docker 1.11 Presentation
Sreenivas Makam
 
dockerizing web application
dockerizing web applicationdockerizing web application
dockerizing web application
Walid Ashraf
 
Vagrant and docker
Vagrant and dockerVagrant and docker
Vagrant and docker
DuckDuckGo
 
Docker in production
Docker in productionDocker in production
Docker in production
Mateusz Kutyba
 
Introduction to docker security
Introduction to docker securityIntroduction to docker security
Introduction to docker security
Walid Ashraf
 
Docker
DockerDocker
Docker
Narato
 
Drupal Development with Docker
Drupal Development with DockerDrupal Development with Docker
Drupal Development with Docker
Promet Source
 

What's hot (20)

Docker
DockerDocker
Docker
 
How to _docker
How to _dockerHow to _docker
How to _docker
 
Docker toolbox
Docker toolboxDocker toolbox
Docker toolbox
 
Docker swarm workshop
Docker swarm workshopDocker swarm workshop
Docker swarm workshop
 
Docker orchestration
Docker orchestrationDocker orchestration
Docker orchestration
 
Plug-ins: Building, Shipping, Storing, and Running - Nandhini Santhanam and T...
Plug-ins: Building, Shipping, Storing, and Running - Nandhini Santhanam and T...Plug-ins: Building, Shipping, Storing, and Running - Nandhini Santhanam and T...
Plug-ins: Building, Shipping, Storing, and Running - Nandhini Santhanam and T...
 
Under the Hood with Docker Swarm Mode - Drew Erny and Nishant Totla, Docker
Under the Hood with Docker Swarm Mode - Drew Erny and Nishant Totla, DockerUnder the Hood with Docker Swarm Mode - Drew Erny and Nishant Totla, Docker
Under the Hood with Docker Swarm Mode - Drew Erny and Nishant Totla, Docker
 
Docker volume
Docker volumeDocker volume
Docker volume
 
Backend Master | 3.4.2 Deploy - Docker Introduction
Backend Master | 3.4.2 Deploy - Docker IntroductionBackend Master | 3.4.2 Deploy - Docker Introduction
Backend Master | 3.4.2 Deploy - Docker Introduction
 
Docker introduction for the beginners
Docker introduction for the beginnersDocker introduction for the beginners
Docker introduction for the beginners
 
Docker Networking - Boulder Linux Users Group (BLUG)
Docker Networking - Boulder Linux Users Group (BLUG)Docker Networking - Boulder Linux Users Group (BLUG)
Docker Networking - Boulder Linux Users Group (BLUG)
 
The state of the swarm
The state of the swarmThe state of the swarm
The state of the swarm
 
JOSA TechTalk: Introduction to docker
JOSA TechTalk: Introduction to dockerJOSA TechTalk: Introduction to docker
JOSA TechTalk: Introduction to docker
 
Docker 1.11 Presentation
Docker 1.11 PresentationDocker 1.11 Presentation
Docker 1.11 Presentation
 
dockerizing web application
dockerizing web applicationdockerizing web application
dockerizing web application
 
Vagrant and docker
Vagrant and dockerVagrant and docker
Vagrant and docker
 
Docker in production
Docker in productionDocker in production
Docker in production
 
Introduction to docker security
Introduction to docker securityIntroduction to docker security
Introduction to docker security
 
Docker
DockerDocker
Docker
 
Drupal Development with Docker
Drupal Development with DockerDrupal Development with Docker
Drupal Development with Docker
 

Similar to Intersog Hack_n_Tell. Docker. First steps.

Introduction To Docker
Introduction To  DockerIntroduction To  Docker
Introduction To Docker
Dr. Syed Hassan Amin
 
Docker: A New Way to Turbocharging Your Apps Development
Docker: A New Way to Turbocharging Your Apps DevelopmentDocker: A New Way to Turbocharging Your Apps Development
Docker: A New Way to Turbocharging Your Apps Development
msyukor
 
Docker
DockerDocker
Docker for developers z java
Docker for developers z javaDocker for developers z java
Docker for developers z java
andrzejsydor
 
Docker Essentials Workshop— Innovation Labs July 2020
Docker Essentials Workshop— Innovation Labs July 2020Docker Essentials Workshop— Innovation Labs July 2020
Docker Essentials Workshop— Innovation Labs July 2020
CloudHero
 
Docker Introductory workshop
Docker Introductory workshopDocker Introductory workshop
Docker Introductory workshop
Runcy Oommen
 
Docker
DockerDocker
Deploying .net core apps to Docker - dotnetConf Local Bengaluru
Deploying .net core apps to Docker - dotnetConf Local BengaluruDeploying .net core apps to Docker - dotnetConf Local Bengaluru
Deploying .net core apps to Docker - dotnetConf Local Bengaluru
Swaminathan Vetri
 
[Codelab 2017] Docker 기초 및 활용 방안
[Codelab 2017] Docker 기초 및 활용 방안[Codelab 2017] Docker 기초 및 활용 방안
[Codelab 2017] Docker 기초 및 활용 방안
양재동 코드랩
 
Primi passi con Docker - ItalianCoders - 12-01-2021
Primi passi con Docker - ItalianCoders - 12-01-2021Primi passi con Docker - ItalianCoders - 12-01-2021
Primi passi con Docker - ItalianCoders - 12-01-2021
Alessandro Mignogna
 
Docker for Web Developers: A Sneak Peek
Docker for Web Developers: A Sneak PeekDocker for Web Developers: A Sneak Peek
Docker for Web Developers: A Sneak Peek
msyukor
 
Dockers & kubernetes detailed - Beginners to Geek
Dockers & kubernetes detailed - Beginners to GeekDockers & kubernetes detailed - Beginners to Geek
Dockers & kubernetes detailed - Beginners to Geek
wiTTyMinds1
 
Docker-machine
Docker-machineDocker-machine
Docker-machine
Sabyrzhan Tynybayev
 
Docker container a-brief_introduction_2016-01-30
Docker container a-brief_introduction_2016-01-30Docker container a-brief_introduction_2016-01-30
Docker container a-brief_introduction_2016-01-30
Khelender Sasan
 
Docker for .NET Developers
Docker for .NET DevelopersDocker for .NET Developers
Docker for .NET Developers
Taswar Bhatti
 
Docker in 30 minutes
Docker in 30 minutesDocker in 30 minutes
Docker in 30 minutes
Steve Poole
 
Docker-Presentation.pptx
Docker-Presentation.pptxDocker-Presentation.pptx
Docker-Presentation.pptx
Vipobav
 
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...
Codemotion
 
Develop with docker 2014 aug
Develop with docker 2014 augDevelop with docker 2014 aug
Develop with docker 2014 aug
Vincent De Smet
 
Docker 進階實務班
Docker 進階實務班Docker 進階實務班
Docker 進階實務班
Philip Zheng
 

Similar to Intersog Hack_n_Tell. Docker. First steps. (20)

Introduction To Docker
Introduction To  DockerIntroduction To  Docker
Introduction To Docker
 
Docker: A New Way to Turbocharging Your Apps Development
Docker: A New Way to Turbocharging Your Apps DevelopmentDocker: A New Way to Turbocharging Your Apps Development
Docker: A New Way to Turbocharging Your Apps Development
 
Docker
DockerDocker
Docker
 
Docker for developers z java
Docker for developers z javaDocker for developers z java
Docker for developers z java
 
Docker Essentials Workshop— Innovation Labs July 2020
Docker Essentials Workshop— Innovation Labs July 2020Docker Essentials Workshop— Innovation Labs July 2020
Docker Essentials Workshop— Innovation Labs July 2020
 
Docker Introductory workshop
Docker Introductory workshopDocker Introductory workshop
Docker Introductory workshop
 
Docker
DockerDocker
Docker
 
Deploying .net core apps to Docker - dotnetConf Local Bengaluru
Deploying .net core apps to Docker - dotnetConf Local BengaluruDeploying .net core apps to Docker - dotnetConf Local Bengaluru
Deploying .net core apps to Docker - dotnetConf Local Bengaluru
 
[Codelab 2017] Docker 기초 및 활용 방안
[Codelab 2017] Docker 기초 및 활용 방안[Codelab 2017] Docker 기초 및 활용 방안
[Codelab 2017] Docker 기초 및 활용 방안
 
Primi passi con Docker - ItalianCoders - 12-01-2021
Primi passi con Docker - ItalianCoders - 12-01-2021Primi passi con Docker - ItalianCoders - 12-01-2021
Primi passi con Docker - ItalianCoders - 12-01-2021
 
Docker for Web Developers: A Sneak Peek
Docker for Web Developers: A Sneak PeekDocker for Web Developers: A Sneak Peek
Docker for Web Developers: A Sneak Peek
 
Dockers & kubernetes detailed - Beginners to Geek
Dockers & kubernetes detailed - Beginners to GeekDockers & kubernetes detailed - Beginners to Geek
Dockers & kubernetes detailed - Beginners to Geek
 
Docker-machine
Docker-machineDocker-machine
Docker-machine
 
Docker container a-brief_introduction_2016-01-30
Docker container a-brief_introduction_2016-01-30Docker container a-brief_introduction_2016-01-30
Docker container a-brief_introduction_2016-01-30
 
Docker for .NET Developers
Docker for .NET DevelopersDocker for .NET Developers
Docker for .NET Developers
 
Docker in 30 minutes
Docker in 30 minutesDocker in 30 minutes
Docker in 30 minutes
 
Docker-Presentation.pptx
Docker-Presentation.pptxDocker-Presentation.pptx
Docker-Presentation.pptx
 
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...
 
Develop with docker 2014 aug
Develop with docker 2014 augDevelop with docker 2014 aug
Develop with docker 2014 aug
 
Docker 進階實務班
Docker 進階實務班Docker 進階實務班
Docker 進階實務班
 

More from Intersog

The power of 1 on 1
The power of 1 on 1 The power of 1 on 1
The power of 1 on 1
Intersog
 
FrontEnd: JS + css + html
FrontEnd: JS + css + htmlFrontEnd: JS + css + html
FrontEnd: JS + css + html
Intersog
 
Clients mean all_for_us
Clients mean all_for_usClients mean all_for_us
Clients mean all_for_us
Intersog
 
How to bring greater QA value with a little bit of release management
How to bring greater QA value with a little bit of release managementHow to bring greater QA value with a little bit of release management
How to bring greater QA value with a little bit of release management
Intersog
 
How to Create a Data Infrastructure
How to Create a Data InfrastructureHow to Create a Data Infrastructure
How to Create a Data Infrastructure
Intersog
 
No one likes getting up at 3 am to fix bugs OR how to be a better developer
No one likes getting up at 3 am to fix bugs OR how to be a better developerNo one likes getting up at 3 am to fix bugs OR how to be a better developer
No one likes getting up at 3 am to fix bugs OR how to be a better developer
Intersog
 
Как не завалить клиентское интервью
Как не завалить клиентское интервьюКак не завалить клиентское интервью
Как не завалить клиентское интервью
Intersog
 
Agile business development.
Agile business development. Agile business development.
Agile business development.
Intersog
 
Infographic based on "Scrum: the art of doing twice the work in half the time"
Infographic based on "Scrum: the art of doing twice the work in half the time"Infographic based on "Scrum: the art of doing twice the work in half the time"
Infographic based on "Scrum: the art of doing twice the work in half the time"
Intersog
 
Java4hipsters
Java4hipsters Java4hipsters
Java4hipsters
Intersog
 
Final countdown-in-sales
Final countdown-in-salesFinal countdown-in-sales
Final countdown-in-sales
Intersog
 
Как пройти пути от любительских поделок на Arduino до промышленных решений за...
Как пройти пути от любительских поделок на Arduino до промышленных решений за...Как пройти пути от любительских поделок на Arduino до промышленных решений за...
Как пройти пути от любительских поделок на Arduino до промышленных решений за...
Intersog
 
Стек протоколов для IoT. Пример использования SNMP
Стек протоколов для IoT. Пример использования SNMPСтек протоколов для IoT. Пример использования SNMP
Стек протоколов для IoT. Пример использования SNMP
Intersog
 
DIY IoT: Raspberry PI 2 + Windows 10 for IoT devices + Microsoft Azure
DIY IoT: Raspberry PI 2 + Windows 10 for IoT devices + Microsoft AzureDIY IoT: Raspberry PI 2 + Windows 10 for IoT devices + Microsoft Azure
DIY IoT: Raspberry PI 2 + Windows 10 for IoT devices + Microsoft Azure
Intersog
 
Zigbee social network
Zigbee social networkZigbee social network
Zigbee social network
Intersog
 
​Успешные, популярные и интересные IoT проекты в США. Тренды
​Успешные, популярные и интересные IoT проекты в США. Тренды​Успешные, популярные и интересные IoT проекты в США. Тренды
​Успешные, популярные и интересные IoT проекты в США. Тренды
Intersog
 
Small tips для иррационала
Small tips для иррационалаSmall tips для иррационала
Small tips для иррационала
Intersog
 
Healthcare. Правила коммуникации.
Healthcare. Правила коммуникации.Healthcare. Правила коммуникации.
Healthcare. Правила коммуникации.
Intersog
 
The Unicorn Workflow
The Unicorn WorkflowThe Unicorn Workflow
The Unicorn Workflow
Intersog
 
Co-Founder & CEO Igor Fedulov and senior software engineer Igor Rolinskiy abo...
Co-Founder & CEO Igor Fedulov and senior software engineer Igor Rolinskiy abo...Co-Founder & CEO Igor Fedulov and senior software engineer Igor Rolinskiy abo...
Co-Founder & CEO Igor Fedulov and senior software engineer Igor Rolinskiy abo...
Intersog
 

More from Intersog (20)

The power of 1 on 1
The power of 1 on 1 The power of 1 on 1
The power of 1 on 1
 
FrontEnd: JS + css + html
FrontEnd: JS + css + htmlFrontEnd: JS + css + html
FrontEnd: JS + css + html
 
Clients mean all_for_us
Clients mean all_for_usClients mean all_for_us
Clients mean all_for_us
 
How to bring greater QA value with a little bit of release management
How to bring greater QA value with a little bit of release managementHow to bring greater QA value with a little bit of release management
How to bring greater QA value with a little bit of release management
 
How to Create a Data Infrastructure
How to Create a Data InfrastructureHow to Create a Data Infrastructure
How to Create a Data Infrastructure
 
No one likes getting up at 3 am to fix bugs OR how to be a better developer
No one likes getting up at 3 am to fix bugs OR how to be a better developerNo one likes getting up at 3 am to fix bugs OR how to be a better developer
No one likes getting up at 3 am to fix bugs OR how to be a better developer
 
Как не завалить клиентское интервью
Как не завалить клиентское интервьюКак не завалить клиентское интервью
Как не завалить клиентское интервью
 
Agile business development.
Agile business development. Agile business development.
Agile business development.
 
Infographic based on "Scrum: the art of doing twice the work in half the time"
Infographic based on "Scrum: the art of doing twice the work in half the time"Infographic based on "Scrum: the art of doing twice the work in half the time"
Infographic based on "Scrum: the art of doing twice the work in half the time"
 
Java4hipsters
Java4hipsters Java4hipsters
Java4hipsters
 
Final countdown-in-sales
Final countdown-in-salesFinal countdown-in-sales
Final countdown-in-sales
 
Как пройти пути от любительских поделок на Arduino до промышленных решений за...
Как пройти пути от любительских поделок на Arduino до промышленных решений за...Как пройти пути от любительских поделок на Arduino до промышленных решений за...
Как пройти пути от любительских поделок на Arduino до промышленных решений за...
 
Стек протоколов для IoT. Пример использования SNMP
Стек протоколов для IoT. Пример использования SNMPСтек протоколов для IoT. Пример использования SNMP
Стек протоколов для IoT. Пример использования SNMP
 
DIY IoT: Raspberry PI 2 + Windows 10 for IoT devices + Microsoft Azure
DIY IoT: Raspberry PI 2 + Windows 10 for IoT devices + Microsoft AzureDIY IoT: Raspberry PI 2 + Windows 10 for IoT devices + Microsoft Azure
DIY IoT: Raspberry PI 2 + Windows 10 for IoT devices + Microsoft Azure
 
Zigbee social network
Zigbee social networkZigbee social network
Zigbee social network
 
​Успешные, популярные и интересные IoT проекты в США. Тренды
​Успешные, популярные и интересные IoT проекты в США. Тренды​Успешные, популярные и интересные IoT проекты в США. Тренды
​Успешные, популярные и интересные IoT проекты в США. Тренды
 
Small tips для иррационала
Small tips для иррационалаSmall tips для иррационала
Small tips для иррационала
 
Healthcare. Правила коммуникации.
Healthcare. Правила коммуникации.Healthcare. Правила коммуникации.
Healthcare. Правила коммуникации.
 
The Unicorn Workflow
The Unicorn WorkflowThe Unicorn Workflow
The Unicorn Workflow
 
Co-Founder & CEO Igor Fedulov and senior software engineer Igor Rolinskiy abo...
Co-Founder & CEO Igor Fedulov and senior software engineer Igor Rolinskiy abo...Co-Founder & CEO Igor Fedulov and senior software engineer Igor Rolinskiy abo...
Co-Founder & CEO Igor Fedulov and senior software engineer Igor Rolinskiy abo...
 

Recently uploaded

Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
AbhimanyuSinha9
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
rwarrenll
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
u86oixdj
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
roli9797
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
manishkhaire30
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
jerlynmaetalle
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Subhajit Sahu
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
axoqas
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
jerlynmaetalle
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
ahzuo
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
mzpolocfi
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
u86oixdj
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
74nqk8xf
 

Recently uploaded (20)

Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
 

Intersog Hack_n_Tell. Docker. First steps.

  • 2. Docker against VM’s - Docker container isn’t a VM - Docker provides an additional layer of abstraction of operating-system-level virtualization. - Avoiding the overhead of starting and maintaining virtual machines (VMs). - Provides resource isolation and allocation benefits, but functions differently because containers virtualize the operating system instead of hardware. Hack‘n’Tell
  • 3. Docker components Docker consists of: - A server which is a type of long-running program called a daemon process (the dockerd command). - A REST API which specifies interfaces that programs can use to talk to the daemon and instruct it what to do. - A command line interface (CLI) client (the docker command). Hack‘n’Tell
  • 4. Docker installation Your best choice: https://www.docker.com/community-edition#/download If you are on Linux (not prod): https://get.docker.com/ Windows 10 Pro - your best friend. Mac OS also supported. Docker CE, Docker EE, Clouds, etc. Hack‘n’Tell
  • 5. Docker basic workflow Hack‘n’Tell - Docker host - bare-metal or virtual machine where Docker is installed - Client - command line interface to communicate Docker daemon (may or may not be installed on the same machine as Docker daemon). - Registry - docker image storage (docker hub, or private storage). - Image - immutable file, snapshot of a container.
  • 6. Docker usage scenarios Hack‘n’Tell - Setup local service - DB, queue, portal, etc. - Test your code - check how your code works on different versions of language without installing it on host machine. - Delivery - prepare and ship image with preinstalled something (local system, clouds).
  • 7. Docker usage example 1 Hack‘n’Tell - Setup local postgres service docker run --name local-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
  • 8. Docker usage example 2 Hack‘n’Tell - Setup local wordpres & DB 1) docker run -e MYSQL_ROOT_PASSWORD=XXX -e MYSQL_USER=wpuser -e MYSQL_PASSWORD=XXX -e MYSQL_DATABASE=wordpress_db -v wpdatabase:/var/lib/mysql --name wordpressdb -d mysql 2) docker run -e WORDPRESS_DB_USER=wpuser -e WORDPRESS_DB_PASSWORD=XXX -e WORDPRESS_DB_NAME=wordpress_db -p 8081:80 -v wordpress:/var/www/html --link wordpressdb:mysql --name wpcontainer -d wordpress
  • 9. Docker usage example 2 Hack‘n’Tell - Check your node js script in different versions docker run -it --rm --name continer-script -p 8080:8080 -v /path/to/your/code/folder/on/host:/usr/src/app -w /usr/src/app node:4 node your-daemon-or-script.js
  • 10. Docker container not persistent Hack‘n’Tell - All container images consist of layers. - Layers are created via image build process and they are immutable. - Container is a new read-write not persistent layer on top of the image. - After container stopped - all changes inside it will be reset to the base image state. - Container state can be saved to image via command commit (better not to do this)
  • 11. Docker usage Command line Purpose Example docker pull <image name> Pull image from registry to host docker pull node:latest docker run <image name> Run container from image docker run ngnix docker ps Show all running containers (look here for container id) docker ps docker stop <container id> Stop running container docker stop 4e2802901fd7 docker rm <container id> Remove container docker rm 4e2802901fd7 docker images Show all images present on host (look here for image id) docker images docker rmi <image id> Remove image from the host docker rmi 3f44455b8f57 docker logs <container id> Logs from container stdout docker logs 4e2802901fd7 docker exec -it <container id> <command> Execute command inside container and show stdout docker exec -it 4e2802901fd7 ls -l /tmp Hack‘n’Tell
  • 12. Docker useful links Hack‘n’Tell - https://hub.docker.com/ - image storage - https://docs.docker.com/ - documentation, tutorials, api, etc. - https://labs.play-with-docker.co m/ - playground, tutorials (docker hub registration required) - https://docs.docker.com/develo p/ - good place to continue from this point