Containerization using Python

Abhiroop Bas
2 min readSep 27, 2020
Deploy Docker 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

Home Web page

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

Deploying Ubuntu:14.04

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.

Docker image

Seems like the image is launched!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Abhiroop Bas
Abhiroop Bas

No responses yet

Write a response