0% found this document useful (0 votes)
4 views

Intro To Docker

Uploaded by

gabriel
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Intro To Docker

Uploaded by

gabriel
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Introduction to Docker

A GDSC Presentation by Gianluca Piccirillo and Matthew Cabral.


What is a container and what is
Docker
Containers Docker
Containers are lightweight, portable, and Docker is a platform for developing,
self-sufficient encapsulations of an shipping, and running applications using
application and its dependencies. containerization technology.

Benefits
Docker simplifies the process of creating, deploying, and managing applications, ensuring
consistency across environments.
Containers vs Virtual
Machines
Resource Usage: Containers share the host OS, using fewer resources
compared to VMs.
Speed: Containers start quickly and can be rapidly scaled up or down.

Isolation: Each VM includes a separate OS, providing more robust


isolation.
Containerization Use Cases
App Deployment Local Development Serverless
Infrastructures
Containerization streamlines Developers can create isolated
the process of deploying environments to work on Containers enable the seamless
applications across different different projects without deployment and scaling of
environments, ensuring conflicts. serverless applications on the
consistency. cloud.
Docker Architecture
Docker Client Docker Daemon
The Docker client, also known as the CLI (docker The Docker daemon, running on the host machine,
run, docker build, docker pull, is the primary way manages Docker objects such as images,
that many Docker users interact with Docker. containers, networks, and volumes.
Docker Images and Containers
Docker Images Docker Containers
An image is an immutable file that contains the The container is a runtime instance of a Docker
source code, libraries, dependencies, tools, and image. It includes the app and all its
other files needed for an app to run. dependencies but shares the kernel with other
containers.
Docker Networking Overview
Bridge Network: Bridges provide communication between individual containers within a single Docker
daemon.
Host Network: Connects the container's network stack directly to the host.

None Network: This network mode disables all networking.


Dockerfile and Docker Compose
Dockerfile
1 A Dockerfile is a text document that contains all the commands a user could call on the
command line to assemble an image.

Docker Compose
2 Docker Compose is a tool for defining and running multi-container Docker applications. It
uses a YAML file to configure the application’s services.

You might also like