Introduction to Docker session (at Nairuby meetup)
-
Upload
stanley-ndagi -
Category
Technology
-
view
141 -
download
5
Transcript of Introduction to Docker session (at Nairuby meetup)
![Page 1: Introduction to Docker session (at Nairuby meetup)](https://reader036.fdocuments.in/reader036/viewer/2022062821/589d4eab1a28abd3338b6d4d/html5/thumbnails/1.jpg)
Intro to DockerNairuby Meetup | Ruby Thursday
![Page 2: Introduction to Docker session (at Nairuby meetup)](https://reader036.fdocuments.in/reader036/viewer/2022062821/589d4eab1a28abd3338b6d4d/html5/thumbnails/2.jpg)
Mission: - Understand Docker- Dealing with a Django Web App- Adding Docker to development workflow
![Page 3: Introduction to Docker session (at Nairuby meetup)](https://reader036.fdocuments.in/reader036/viewer/2022062821/589d4eab1a28abd3338b6d4d/html5/thumbnails/3.jpg)
The problem
It’s common to hear this
“It is working locally”
“I have issues deploying ...”
“It is working on my machine but I’m having trouble helping Banta set it up”
![Page 4: Introduction to Docker session (at Nairuby meetup)](https://reader036.fdocuments.in/reader036/viewer/2022062821/589d4eab1a28abd3338b6d4d/html5/thumbnails/4.jpg)
The solution
- VMWare- Vagrant
DockerThe Game changer
![Page 5: Introduction to Docker session (at Nairuby meetup)](https://reader036.fdocuments.in/reader036/viewer/2022062821/589d4eab1a28abd3338b6d4d/html5/thumbnails/5.jpg)
Normal workflow
Build
Run
![Page 6: Introduction to Docker session (at Nairuby meetup)](https://reader036.fdocuments.in/reader036/viewer/2022062821/589d4eab1a28abd3338b6d4d/html5/thumbnails/6.jpg)
The Docker way
![Page 7: Introduction to Docker session (at Nairuby meetup)](https://reader036.fdocuments.in/reader036/viewer/2022062821/589d4eab1a28abd3338b6d4d/html5/thumbnails/7.jpg)
Build
Ship
Run
![Page 8: Introduction to Docker session (at Nairuby meetup)](https://reader036.fdocuments.in/reader036/viewer/2022062821/589d4eab1a28abd3338b6d4d/html5/thumbnails/8.jpg)
Setup
Docker EngineDocker
MachineDocker Swarm
MacWindows
Linux Amazon AWS
AzureWindows Server
Docker is installable on:
![Page 9: Introduction to Docker session (at Nairuby meetup)](https://reader036.fdocuments.in/reader036/viewer/2022062821/589d4eab1a28abd3338b6d4d/html5/thumbnails/9.jpg)
How it works
BuildDockerfiledocker-compose.yml
$ docker build -t <image-name> .
A
![Page 10: Introduction to Docker session (at Nairuby meetup)](https://reader036.fdocuments.in/reader036/viewer/2022062821/589d4eab1a28abd3338b6d4d/html5/thumbnails/10.jpg)
How it works
BuildDockerfiledocker-compose.yml
$ docker build -t <image-name> .
ShipDocker Hub
$ docker login$ docker push
A B
DOCKER HUB (released 2014):
- Workflow automation- Integration- Organisation (Teamwork)
Under the covers> Faster download speeds
![Page 11: Introduction to Docker session (at Nairuby meetup)](https://reader036.fdocuments.in/reader036/viewer/2022062821/589d4eab1a28abd3338b6d4d/html5/thumbnails/11.jpg)
It is 3-fold
![Page 12: Introduction to Docker session (at Nairuby meetup)](https://reader036.fdocuments.in/reader036/viewer/2022062821/589d4eab1a28abd3338b6d4d/html5/thumbnails/12.jpg)
How it works
BuildDockerfiledocker-compose.yml
$ docker build -t <image-name> .
ShipDockerhub
$ docker login$ docker push
RunDocker environment
$ docker run <image-name>
A B C
![Page 13: Introduction to Docker session (at Nairuby meetup)](https://reader036.fdocuments.in/reader036/viewer/2022062821/589d4eab1a28abd3338b6d4d/html5/thumbnails/13.jpg)
What next?Adding Docker to your workflow
![Page 14: Introduction to Docker session (at Nairuby meetup)](https://reader036.fdocuments.in/reader036/viewer/2022062821/589d4eab1a28abd3338b6d4d/html5/thumbnails/14.jpg)
@NdagiStanley