Skip to content

yeofrancis/DevOps-with-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

DevOps-with-Docker

Containerization versus virtualization

A virtual machine emulates a computer architecture and provides the functionality of a physical computer. We can achieve complete isolation of applications if each of them is delivered and run as a separate virtual machine image.

The concept of virtualization:

image

Virtualization, however, has three significant drawbacks:

  • Low performance: The virtual machine emulates the whole computer architecture to run the guest operating system, so there is a significant overhead associated with each operation.
  • High resource consumption: Emulation requires a lot of resources and has to be done separately for each application. This is why, on a standard desktop machine, only a few applications can be run simultaneously.
  • Large image size: Each application is delivered with a full operating system, so the deployment on a server implies sending and storing a large amount of data.

The concept of containerization presents:

image

Each application is delivered together with its dependencies, but, without the operating system. Applications interface directly with the host operating system, so there is no additional layer of the guest operating system. It results in better performance and no waste of resources.

Continious Integration / Continious Delivery with Docker

The Developer's inner loop and outer loop shown below. To this, we want the inner loop and the outer loop to be mirrored as much as possible.

image

Running Docker Container

docker container run nginx:alpine

Publish the container

run in the background and publishes port 80 inside the container to port 80 on the host

$ docker container run --detach --publish 80:80 nginx:alpine

browse to browse to browse to http://localhost and see the Nginx welcome page

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors