2. Agenda
• Understanding conventional Infrastructure/Applications
• What are containers and why do we need them?
• Benefits
• Key Learnings
• What is Docker?
• Building and running containers
• Run an Apache container in an online Docker Lab
• Exploring Docker commands
• Recap
• What’s next?
• Let’s look at industry use cases for Docker
• Opportunities for modernization
5. What is a container?
Source: docs.docker.com
• Container ≠ VM
• Isolated
• Share OS
• and sometimes bins/libs
6. What is Docker?
Docker is a software platform that allows you to build, test, and deploy applications
quickly, packaging software into standardized units called containers.
Course Task(s)
Find out if any other products like Docker to build containers
Compare pros and cons
7. Results
Moving from VMs to containers increases performance 27% to 46%
Results are after VM and Container Tuning
11. 11
Let's understand Docker vocabulary
Docker Image
The basis of a Docker container. Represents a full application
Docker Container
The standard unit in which the application service resides and executes
Docker Engine
Creates, ships and runs Docker containers deployable on a physical or
virtual, host locally, in a datacenter or cloud service provider
Registry Service (Docker Hub or Docker Trusted Registry)
Cloud or server-based storage and distribution service for your images
14. Online Docker Lab
• It’s easy and free
• No installation needed
• Account needed for Docker Registry
• Images are public
• URL:https://training.play-with-docker.com/beginner-linux/
15. Run Apache on Docker
• $ docker pull httpd:latest
This command pulls the httpd (Apache) latest image from
Docker Hub
16. Run Apache on Docker
• $ docker images
This command checks and lists the images downloaded and
available locally on the server.
Note: So far, we have not built or run the container yet.
17. Run Apache on Docker
$ docker run -d -p 80:80 --name apachecontainer httpd:latest
This command runs the container using httpd:latest image.
Name of the container is apachecontainer
-d – run the container as a background daemon or process
-p – specifies the server port to bind with the container
process port
18. Run Apache on Docker
$ docker ps
This command lists all the container processes that are currently
running
Task: Examine the output fields to understand the
details
19. Run Apache on Docker
$ docker stop apachecontainer
This command stops the container we started before as
apachecontainer
Tasks:
What are ways to stop a specific container?
Run “docker ps –a” and examine the output
20. Run Apache on Docker
$ docker rm apachecontainer
This command removes the container we started before.
Tasks:
What are the ways to stop the running container?
Can you explain differences between stop and rm
21. Run Apache on Docker
$ docker rmi httpd:latest
This command removes the image we downloaded
Tasks:
We removed only 1 image. What is in the output that says
“Deleted”
23. Now we know what is a container and what
is Docker, right?
Docker is a software platform that allows you to build, test, and deploy applications
quickly, packaging software into standardized units called containers.
Try and check out labs and other tutorials @ https://training.play-with-
docker.com/
25. Enterprises are looking to Docker for
critical transformations
80%
Docker is central to
cloud strategy
Docker Survey: State of App development : Q1 - 2016
3 out 4
Top initiatives revolve
around applications
44%
Looking to adopt DevOps
App
Modernization
DevOps
Cloud
26. One platform delivers one journey for all
applications
1 Containerize Legacy Applications
Lift and shift for portability and efficiency
2
3
Transform Legacy to Microservices
Look for shared services to transform
Accelerate New Applications
Greenfield innovation
27. Thank You
Share your course content related queries or
suggestions/feedback here