introduction to docker session (at nairuby meetup)
TRANSCRIPT
Intro to DockerNairuby Meetup | Ruby Thursday
Mission: - Understand Docker- Dealing with a Django Web App- Adding Docker to development workflow
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”
The solution
- VMWare- Vagrant
DockerThe Game changer
Normal workflow
Build
Run
The Docker way
Build
Ship
Run
Setup
Docker EngineDocker
MachineDocker Swarm
MacWindows
Linux Amazon AWS
AzureWindows Server
Docker is installable on:
How it works
BuildDockerfiledocker-compose.yml
$ docker build -t <image-name> .
A
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
It is 3-fold
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
What next?Adding Docker to your workflow
@NdagiStanley