DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Introduction to Data Replication With MariaDB Using Docker Containers
  • 5 Simple Tips to Keep Dockerized Apps Secure
  • Popular Tools Supporting YAML Data Format
  • The Importance of Persistent Storage in Kubernetes- OpenEBS

Trending

  • Build a Serverless App Fast With Zipper: Write TypeScript, Offload Everything Else
  • Four Ways for Developers To Limit Liability as Software Liability Laws Seem Poised for Change
  • How To Use ChatGPT API in Python for Your Real-Time Data
  • Memory Management in Java: An Introduction
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Introduction to Docker

Introduction to Docker

If you haven't heard about Docker by now, crawl out from under your rock and check out what makes Docker a solution to a longstanding dilemma.

Shashank Rastogi user avatar by
Shashank Rastogi
·
Mar. 01, 18 · Presentation
Like (22)
Save
Tweet
Share
15.95K Views

Join the DZone community and get the full member experience.

Join For Free

In the last couple of years, there has been lot of excitement about Docker and many big & small companies have moved toward Docker and have incorporated it as part of their DevOps application deployment process. As part of this blog, I would like to introduce Docker and provide a synopsis on:

  • Challenges faced by IT companies before Docker

  • The Matrix from Hell

  • Containers & Evolution of Docker from containers

  • VM vs Containers

  • Docker & its architecture

  • Solution: How Docker helps in mitigating the challenges faced earlier

What is the Challenge?

As depicted in the picture below, maintaining multiple technology stacks across multiple environments was a nightmare earlier. On top of this, one has to also worry about migrating to a different technology, upgrades, etc., which not only makes it more complex, but completely nonviable to support without having huge impact of CTO and BAU operations.

Image title


The Matrix From Hell

If you Google "Matrix from Hell," I am sure you will find lot of articles on how Docker solves the matrix from hell quandary.

So what precisely is the matrix from hell? In simple words, it is the challenge of packaging any application, irrespective of language/frameworks/dependencies, so that it can run on any cloud, irrespective of the underlying OS/hardware/infrastructure.

Matrix From Hell


Solution: Intermodal Shipping Container

Intermodal Shipping Container


Solution: Why It Works: Separation of Concerns

The introduction of Docker helped in the eliminating of this matrix, by isolating the worries of developers and administrators. Developers can focus on bundling applications and dependencies as containers, without agonizing over underlying hardware/infrastructure. Administrators/DevOps team can concentrate on managing containers, without agonizing over the contents of those containers.

Separation of Concerns


Solution: Benefits for Developers & Administrators

What is Docker?

Docker is an open platform for developing, shipping & running distributed applications, whether on laptops, data center VMs or cloud. Docker provides the ability to package and run an application in a loosely isolated environment called a container. The Docker Platform consists of multiple product/tools, including the Docker Engine, Images, Containers, and Hub, among others.

The Docker platform is the only container platform to build, secure and manage the widest array of applications from development to production both on premises and in the cloud.

Docker Architecture

Docker Architecture


Docker Images, Containers & Registries

Images Containers Registries
An image is a static representation of the app or service and its configuration and dependencies. Container is runtime object or representation of an image. An image is a static representation of the app or service and its configuration and dependencies
An image is an instance of a container.  When an image is started, it gives running container of an image. Containers are lightweight & portable encapsulation of  an environment where applications are run A Docker image is built up from a series of layers

 

A Docker image is built up from a series of layers, allowing a minimal amount of data to be sent when transferring images over network. Command – “docker ps” only outputs running containers Images are stored in a registry

 

Images are stored in a registry such as docker hub When a docker image is run using command “docker run” it creates a container from that instance.
Images are created with the “build“ command Containers can be run in either active or detached mode.
Local images can be listed by running command – docker images

Filesystem changes made in a container do not affect the image

VM vs. Containers

VM vs Containers


Solution: Docker Eliminates the Matrix From Hell

Docker solved the matrix from hell by decoupling the application from the underlying operating system and hardware. It did this by packaging all dependencies inside Docker containers, including the OS. This makes Docker containers "portable", i.e. they can run on any cloud or machine without the dreaded "it works on this machine" problems.

Solution: From Waterfall to DevOps

In one of the studies, it is estimated by Gartner that more than 50% of new workloads will be deployed into containers in atleast one stage of the application life cycle in the year of 2018.

Also, I have presented below some of the facts from RighScale 2017 State of the Cloud report. This is simply to underscore that Docker is causing the most imperative change in application deployment process.


Docker (software) application Data (computing)

Published at DZone with permission of Shashank Rastogi. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Introduction to Data Replication With MariaDB Using Docker Containers
  • 5 Simple Tips to Keep Dockerized Apps Secure
  • Popular Tools Supporting YAML Data Format
  • The Importance of Persistent Storage in Kubernetes- OpenEBS

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: