Containerization using Python

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!

--

--

--

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

Recommended from Medium

Kotlin Co-routines : Solving asynchronous code spaghetti [part two-> Understanding the coroutine’s…

Designing a Webpage Quickly with W3.CSS

3 reasons ML disrupts traditional software engineering

Why You Should Choose Software Development in Eastern Europe

Configure AWS CLI In 2 minutes

by Silvia Mazzetta Date: 16–06–2020 machinelearning AI ArtificialIntelligence javascript

Introduction To Recursion In Python

Recursion visualization Created By Varun Singh

July LeetCoding Challenge

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
Abhiroop Bas

Abhiroop Bas

More from Medium

Fatigue, Weight & Muscle Weakness: Could It Be Mitochondrial Issues?

WHAT’S YOUR NUMBER

Find You

Back to Basics: What is CrossFit?