You are on page 1of 17

UIVERSITETI ICCITBA

ALEKSANDER MOISIU CANADIAN INSTITUTE OF


DURRES TECHNOLOGY
DOCKER INTEGRATION IN THE
DEVELOPMENT WORKFLOW

by

ALBI ABDYLI
Why Docker?
Docker is a market leader on containerisation. Containers are taking
the IT world like a storm providing a flexible way of running
applications, providing a easy way of integrating Continues
Integration/Continues Delivery for the developers.
This presentation is a demonstration of what docker can do for
anyone not just developers, even users can use Docker as a
sandboxing tool to test applications before installing them in the
main system.
WHAT IS DOCKER?
Docker automates the repetitive tasks of setting up
and configuring development environments so that
developers can focus on what matters: building great
software. It streamlines software delivery. Develop
and deploy bug fixes and new features without
roadblocks. Scale applications in real time.

Source: https://www.docker.com/what-docker
Docker Components
Docker Engine
Docker Client
Docker Hub and registries
Docker Engine
1. docker daemon(server)
2. RESTful API
3. docker CLI (client)

Containers
Volumes
Network
Images
Docker Client
$ docker pull [IMAGE] # Pulls a container from the registry

$ docker run [IMAGE] # Runs a container

$ docker ps (-a) # Lists all running (and not) containers

$ docker run -d -p 4000:80 [IMAGE] # Runs a container as daemon publishing


# on the host the port 80 of the container
# as port 4000 of the host

$ docker rm/rmi [CONTAINER]/[IMAGE] # Deletes a container/image

$ docker stop [CONTAINER] # Stops a Container

$ docker kill [CONTAINER] # Kills the running process of a container

With this commands anyone can explore Docker


and its main features
Docker Hub & Registries
Docker Images & Containers
Docker Images are the base for every Docker Container.
They are composed of layers that can be used by a Docker
Container.

A container is the running instance of a Docker image.


It creates a writable layer where all the changes made by
the user are stored.
Dockefile
The docker file consists on the definition of what will be in the container
providing a easy way of creating personalised Docker Images.
They consist on instructions that are interpreted by Docker and
converted to an image .
Hypervisor VS Docker

1. Needs a OS to run 1. Runs a single process


2. Its heavily isolated 2. Its isolated on kernel
3. Starts as a normal namespaces
Operating System 3. It needs only the
namespace and the
creation of the process
time (usually seconds)
They are pretty fast
It takes less than two minutes for a Image to download and run

and less than a second to do a normal start


Docker & DevOps
Docker provides a native
way of testing and
delivering qualitative
software.
It integrates natively with
all the major CI/CD
platforms on the market.
The workflow
The Docker Ecosystem
Conclusion

Docker provides a great way for creating, managing and


deploying containers.
It provides an unified interface from the local machine of the
developer to the production server on the cloud making the
management of all the infrastructure a breeze.
It gives the developer the possibility to decouple the code
from the the operating system making the application fully
modular.
Thank You

You might also like