Sneak view into Docker for Web devs | Part-1

  • Team A has engineers who want to develop software on Mac OSX. However their application in production is going to run on Ubuntu 16 with JDK 1.7 and Tomcat 7, but QA team doesn’t likes the idea of shipping softwares, which are developed on Mac OSX and tested on Ubuntu.
  • Team B on the other hand wants to upgrade JDK to 1.8 and Tomcat 8 in QA environment, to test their app.
  • The infrastructure or the server sits on the bottom.
  • On top of the infrastructure, the host operating system is installed. Now, it could be Windows Mac OSX, Linux etc.
  • On top of this, sits the docker-engine and the docker-engine is responsible for spawning various containers. So, all this docker engine is doing is to spawn multiple containers.
  • Processing ability.
  • Memory.
  • Volumes mounted to the OS.
What is Docker ?
  • First Container runs on the port 80 hosted on Tomcat-7 and JDK 1.7.
  • Second Container runs on the port 80 hosted on Tomcat-8 and JDK 1.8.
Hosting multiple environments on same hardware
  • Team-A installs docker on their local MacOSX and develops software using JDK 1.7 and Tomcat-7 and this environment is going to be consistent across all the environments.
  • Team B gets to use JDK 1.8 and Tomcat-8 even though they share the servers with Team A.
  • QA on the other hand is happy, as they get to test an application which was developed using the same OS (as that of prod).
docker version command output
docker preferences
docker run -it hello-world
docker-compose version
Yay ! our website is accessible from within the container now.
Installed “procps” package into the Container.
Note the PID as 1.




Software Engineer for Big Data distributed systems

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Deadline Driven Predictability

Unicode, UTF-8, and other jargons

UTF8 mapping between Code Point and Code Unit table.

Daily XAUUSD Price Action Analysis— 19 AUG 2021

How to Learn to Program: Writing Code Templates

Using FPGA-SoC Interface for Low Cost IoT Based Image Processing

AWS IoT Buttons, Lambda and Cloud9

Introduction to Linters in GO and Know About Golangci-lint

User Authentication with Django REST Framework and JSON Web Tokens

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
aditya goel

aditya goel

Software Engineer for Big Data distributed systems

More from Medium

Sneak view into Docker for devs| Part-2

Connect multiple docker-compose projects on local Ubuntu machine


Building a docker image using a container