SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (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
 

Ähnlich wie Intersog Hack_n_Tell. Docker. First steps.

Docker-Presentation.pptx
Docker-Presentation.pptxDocker-Presentation.pptx
Docker-Presentation.pptx
Vipobav
 

Ähnlich wie 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 進階實務班
 

Mehr von Intersog

Mehr von 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...
 

Kürzlich hochgeladen

CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
amitlee9823
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
amitlee9823
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
amitlee9823
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
amitlee9823
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
amitlee9823
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
amitlee9823
 

Kürzlich hochgeladen (20)

Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Detecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning ApproachDetecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning Approach
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
 
hybrid Seed Production In Chilli & Capsicum.pptx
hybrid Seed Production In Chilli & Capsicum.pptxhybrid Seed Production In Chilli & Capsicum.pptx
hybrid Seed Production In Chilli & Capsicum.pptx
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
 

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