A Docker analogy

Imagine you have an USB pendrive and you install on it an Operating System, a Web server, a database and you create a web page on top of that. You are able to boot into your pendrive and everything is peachy. You can access your website that is being served by your laptop through the web server installed on your pendrive.

Now imagine you want to take that same setup to your desktop because you think it’s more appropiate to have a web server on a less portable computer. You extract the pendrive and you plug it in your desktop and boot. Again everything is peachy. Now your website is reachable at your desktop.

Now imagine again you would prefer Amazon to host your website and leverage an environment that you know as a fact works. You go to your closest AWS datacenter and you ask the guy over there: “Hey dude, can I plug this USB pendrive in one of your servers and boot it up from there?”. The guy says NO.

Well Docker is your USB pendrive. And with Docker the guy says YES. And you don’t have to drive to your closest AWS datacenter. And AWS doesn’t have to be AWS. It can be Digital Ocean or any other VPS or Dedicated server that supports Docker.

Community Page
Last updated: