Skip to content

A Simple Dockerized Python web server for learning containerization concepts.

Notifications You must be signed in to change notification settings

sasmithaK/hands-on-containerization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Containerization Workshop

This repository contains a Dockerized Python web server for learning containerization concepts.

Features

  • Lightweight Python-based web server
  • Simple Dockerfile for containerization
  • Easy to build and run

Prerequisites

Ensure you have the following installed:

Getting Started

Follow these steps to build and run the containerized web server:

1. Clone the Repository

git clone https://github.com/sasmithaK/containerization-workshop.git  
cd containerization-workshop  

2. Build the Docker Image

docker build -t simple-python-webserver .  

3. Run the Docker Container

docker run -p 8080:8080 simple-python-webserver  

4. Access the Web Server

The server will be accessible at:
http://localhost:8080

Stopping the Container

To stop the running container, use:

docker ps  # Get the container ID  
docker stop <container_id>  

Cleanup

To remove the container and image:

docker rm <container_id>  
docker rmi simple-python-webserver  

About

A Simple Dockerized Python web server for learning containerization concepts.

Resources

Stars

Watchers

Forks