Containerization using Python

Containerization

Container technology is one of the most interesting and important technology used by the modern world. This enables us to launch a complete operating system and boot it within seconds and with very minimal space. This is made possible by the use of container technology on a base OS. Docker is one such technology that enables us to launch containers. Docker Hub is the repository of docker images universally.

Common Gateway Interface

The CGI gateway is a way to create web apps and implement them on a web server. This makes use of a scripting language like python to set up a program for a client to use without logging in to the server.

Implementation

The above web page is created basic HTML code with a form to input the name of the docker image intended to deploy.

The form has been redirected to a python code in a cgi-bin directory and hosted using Apache Httpd server. In this example, I have tried to launch an Ubuntu:14.04 image.

Seems like the image is launched!

--

--

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