SlideShare a Scribd company logo
Intro to Docker
CPA JUG
2017-09-14
Matt tomasov - matthewjt@gmail.com
Mike Melusky - mike.melusky@gmail.com
What is Docker?
Docker is containerized management and
execution of isolated applications.
Virtual Machines (VM Ware, VirtualBox, etc)
Parallells
WINE ( www.winehq.org )
How is Docker different
from a Virtual Machine
Virtual Machines
- Each VM needs its own resources from the Host OS and
each VM image needs its own local resources.
- Very little is shared.
Docker
- Lightweight Docker engine runs on the Host OS (Can run
natively or in lightweight virtual machine)
- Docker engine shares image resources.
- No need to boot an entire OS for one application.
Basic Docker Commands
List running containers
$ docker ps
Create a Container
$ docker run
List images
$ docker images
Create container from image
$ docker run hello-world
Run python on the hello-world container
$ docker run hello-world
python --version
Pull image containing python
$ docker pull python
Run container from that image:
$ docker run python
python --version
View the image's directory:
$ docker run python ls
What can we run in Docker?
● Gitlab
● Atlassian JIRA
● Atlassian Confluence
● JetBrains YouTrack
Into to Docker (Central PA Java User Group - 8/14/2017)
Docker Hub Image
$ docker pull gitlab/gitlab-ce
Run GitLab Image
sudo docker run --detach 
--hostname gitlab.example.com 
--publish 443:443 --publish 80:80 --publish 22:22 
--name gitlab 
--restart always 
--volume /srv/gitlab/config:/etc/gitlab 
--volume /srv/gitlab/logs:/var/log/gitlab 
--volume /srv/gitlab/data:/var/opt/gitlab 
gitlab/gitlab-ce:latest
Into to Docker (Central PA Java User Group - 8/14/2017)
Run a JIRA image in Docker
$ docker run --detach --publish
8080:8080 cptactionhank/atlassian-
jira:latest
Into to Docker (Central PA Java User Group - 8/14/2017)
Official Image on Docker Hub
$ docker pull atlassian/confluence-server
Run Confluence Image
$> docker run -v /data/your-confluence-
home:/var/atlassian/application-data/confluence --
name="confluence" -d -p 8090:8090 -p 8091:8091
atlassian/confluence-server
Into to Docker (Central PA Java User Group - 8/14/2017)
Third-party image on Docker Hub
$ docker pull zoer/youtrack
Demo - Create your own Docker image (Matt)
- Demo Spring Boot application
- Web application with index.jsp
- Tomcat integrated in application
- Can be run using java -jar <application jar>
- Dockerfile
- Docker build
- Docker docker run
When to “Dockerize”
Simple applications
Configuration can be “externalized”
Multiple applications, multiple dependencies, “install hell”
Constant updates
Distribute easily
Install can be scripted
When NOT to “Dockerize”
Application configuration is not easily upgraded
No need for backups
Install is complicated and requires a lot of human thought/interaction
References
Docker - https://docker.io
https://www.docker.com/what-docker
https://www.docker.com/what-container
ZDNet article explaining why Docker is great - http://www.zdnet.com/article/what-is-docker-
and-why-is-it-so-darn-popular/

More Related Content

What's hot (20)

PDF
Docker導入手順
Yu Iwama
 
PPTX
Austin - Container Days - Docker 101
Bill Maxwell
 
PPTX
Docker & Kubernetes
Troy Harvey
 
PDF
Docker for mere mortals
Henryk Konsek
 
PPTX
Docker presentation
Shankar Chaudhary
 
PDF
How Stuffle uses Docker for deployments
RobinBrandt
 
PDF
Moving to Docker... Finally!
Squareboat
 
PDF
Provisioning & Deploying with Docker
Erica Windisch
 
PDF
Containerize! Between Docker and Jube.
Henryk Konsek
 
PDF
Docker tutorial2
Tatsuya Yagi
 
PPTX
Introduzione a GitHub Actions (beta)
Giulio Vian
 
PDF
Fun with containers: Use Ansible to build Docker images
abadger1999
 
PPTX
Docker for dev
Yusuf Found
 
PDF
Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
Leo Lorieri
 
PPTX
Meetup #24 Docker for Node Developer
MVP Microsoft
 
PPTX
Fabricio - Docker deploy automation
Rinat Khabibiev
 
PDF
Very Early Review - Rocket(CoreOS)
충섭 김
 
PDF
Virthualenvwrapper
Kazufumi Ohkawa
 
PPTX
A to Z of a Multi-platform Docker Swarm: Building, Shipping, and Running Mult...
Christy Norman
 
PDF
Docker &amp; rancher
Alin Voinea
 
Docker導入手順
Yu Iwama
 
Austin - Container Days - Docker 101
Bill Maxwell
 
Docker & Kubernetes
Troy Harvey
 
Docker for mere mortals
Henryk Konsek
 
Docker presentation
Shankar Chaudhary
 
How Stuffle uses Docker for deployments
RobinBrandt
 
Moving to Docker... Finally!
Squareboat
 
Provisioning & Deploying with Docker
Erica Windisch
 
Containerize! Between Docker and Jube.
Henryk Konsek
 
Docker tutorial2
Tatsuya Yagi
 
Introduzione a GitHub Actions (beta)
Giulio Vian
 
Fun with containers: Use Ansible to build Docker images
abadger1999
 
Docker for dev
Yusuf Found
 
Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
Leo Lorieri
 
Meetup #24 Docker for Node Developer
MVP Microsoft
 
Fabricio - Docker deploy automation
Rinat Khabibiev
 
Very Early Review - Rocket(CoreOS)
충섭 김
 
Virthualenvwrapper
Kazufumi Ohkawa
 
A to Z of a Multi-platform Docker Swarm: Building, Shipping, and Running Mult...
Christy Norman
 
Docker &amp; rancher
Alin Voinea
 

Similar to Into to Docker (Central PA Java User Group - 8/14/2017) (20)

PDF
Using Docker to build and test in your laptop and Jenkins
Micael Gallego
 
PDF
Docker slides
Jyotsna Raghuraman
 
PDF
Introduction to Docker Containers - Docker Captain
Ajeet Singh Raina
 
PDF
Introduction to docker
Hiroki Endo
 
PPTX
Docker 101 describing basic docker usage
ZiyanMaraikar1
 
PDF
Docker Intro at the Google Developer Group and Google Cloud Platform Meet Up
Jérôme Petazzoni
 
PDF
Introduction to Docker - IndiaOpsUG
Ajeet Singh Raina
 
PDF
Docker 0.11 at MaxCDN meetup in Los Angeles
Jérôme Petazzoni
 
PDF
Virtual Machines and Docker
Danish Khakwani
 
PDF
Docker presentation
Jaskaran Singh
 
PDF
Introduction to Docker at Glidewell Laboratories in Orange County
Jérôme Petazzoni
 
PDF
ExpoQA 2017 Using docker to build and test in your laptop and Jenkins
ElasTest Project
 
PDF
Agile Brown Bag - Vagrant & Docker: Introduction
Agile Partner S.A.
 
PPTX
Docker
Vu Duc Du
 
PPTX
Docker 101 - Nov 2016
Docker, Inc.
 
PDF
Introduction to Docker, December 2014 "Tour de France" Bordeaux Special Edition
Jérôme Petazzoni
 
PDF
Dockerizing development workflow
Orest Ivasiv
 
PPTX
Dockerize the World - presentation from Hradec Kralove
damovsky
 
PPTX
Dockerize the World
damovsky
 
Using Docker to build and test in your laptop and Jenkins
Micael Gallego
 
Docker slides
Jyotsna Raghuraman
 
Introduction to Docker Containers - Docker Captain
Ajeet Singh Raina
 
Introduction to docker
Hiroki Endo
 
Docker 101 describing basic docker usage
ZiyanMaraikar1
 
Docker Intro at the Google Developer Group and Google Cloud Platform Meet Up
Jérôme Petazzoni
 
Introduction to Docker - IndiaOpsUG
Ajeet Singh Raina
 
Docker 0.11 at MaxCDN meetup in Los Angeles
Jérôme Petazzoni
 
Virtual Machines and Docker
Danish Khakwani
 
Docker presentation
Jaskaran Singh
 
Introduction to Docker at Glidewell Laboratories in Orange County
Jérôme Petazzoni
 
ExpoQA 2017 Using docker to build and test in your laptop and Jenkins
ElasTest Project
 
Agile Brown Bag - Vagrant & Docker: Introduction
Agile Partner S.A.
 
Docker
Vu Duc Du
 
Docker 101 - Nov 2016
Docker, Inc.
 
Introduction to Docker, December 2014 "Tour de France" Bordeaux Special Edition
Jérôme Petazzoni
 
Dockerizing development workflow
Orest Ivasiv
 
Dockerize the World - presentation from Hradec Kralove
damovsky
 
Dockerize the World
damovsky
 
Ad

More from Mike Melusky (20)

PPTX
Container Orchestration for .NET Developers
Mike Melusky
 
PPTX
Containerize all the things!
Mike Melusky
 
PPTX
Building a Google Cloud Firestore API with dotnet core
Mike Melusky
 
PPTX
Effective .NET Core Unit Testing with SQLite and Dapper
Mike Melusky
 
PPTX
Effective .NET Core Unit Testing with SQLite and Dapper
Mike Melusky
 
PPTX
Reactive Web Development with Spring Boot 2
Mike Melusky
 
PPTX
Building xamarin.forms apps with prism and mvvm
Mike Melusky
 
PPTX
Introduction to react native with redux
Mike Melusky
 
PPTX
Xamarin.Forms Bootcamp
Mike Melusky
 
PPTX
An evening with React Native
Mike Melusky
 
PPTX
Progressive Web Apps and React
Mike Melusky
 
PPTX
An afternoon with angular 2
Mike Melusky
 
PPTX
An evening with Angular 2
Mike Melusky
 
PPTX
Securing your azure web app with asp.net core data protection
Mike Melusky
 
PPTX
Ember.js and .NET Integration
Mike Melusky
 
PPTX
Building Native “apps” with Visual Studio 2015
Mike Melusky
 
PPTX
Emberjs and ASP.NET
Mike Melusky
 
PPTX
Fun with lambda expressions
Mike Melusky
 
PPTX
An evening with querydsl
Mike Melusky
 
PPTX
Fun with lambda expressions
Mike Melusky
 
Container Orchestration for .NET Developers
Mike Melusky
 
Containerize all the things!
Mike Melusky
 
Building a Google Cloud Firestore API with dotnet core
Mike Melusky
 
Effective .NET Core Unit Testing with SQLite and Dapper
Mike Melusky
 
Effective .NET Core Unit Testing with SQLite and Dapper
Mike Melusky
 
Reactive Web Development with Spring Boot 2
Mike Melusky
 
Building xamarin.forms apps with prism and mvvm
Mike Melusky
 
Introduction to react native with redux
Mike Melusky
 
Xamarin.Forms Bootcamp
Mike Melusky
 
An evening with React Native
Mike Melusky
 
Progressive Web Apps and React
Mike Melusky
 
An afternoon with angular 2
Mike Melusky
 
An evening with Angular 2
Mike Melusky
 
Securing your azure web app with asp.net core data protection
Mike Melusky
 
Ember.js and .NET Integration
Mike Melusky
 
Building Native “apps” with Visual Studio 2015
Mike Melusky
 
Emberjs and ASP.NET
Mike Melusky
 
Fun with lambda expressions
Mike Melusky
 
An evening with querydsl
Mike Melusky
 
Fun with lambda expressions
Mike Melusky
 
Ad

Recently uploaded (20)

PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
July Patch Tuesday
Ivanti
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
July Patch Tuesday
Ivanti
 

Into to Docker (Central PA Java User Group - 8/14/2017)

Editor's Notes

  • #25: /mnt/sdb1 docker build -t matthewjt/jug:1 . docker build -t matthewjt/jug:2 -f Dockerfile_minimal . docker run -i -p 8080:8080 -t matthewjt/jug:1