Embed presentation
Downloaded 19 times



![Example
#!/usr/bin/env python
import sys
import requests
from bs4 import BeautifulSoup
r = requests.get(sys.argv[-1])
data = r.text
soup = BeautifulSoup(data)
for link in soup.find_all("a"):
print(link.get("href"))
FROM python
LABEL maintainer="Sawood Alam <@ibnesayeed>"
RUN pip install beautifulsoup4
RUN pip install requests
COPY main.py /app/
WORKDIR /app
RUN chmod a+x main.py
ENTRYPOINT ["./main.py"]
main.py Dockerfile](https://image.slidesharecdn.com/dockerize-your-projects-170720144413/85/Dockerize-Your-Projects-A-Brief-Introduction-to-Containerization-4-320.jpg)



This document provides an introduction to containerization using Docker. It explains that Docker packages applications and dependencies into containers that are lighter than virtual machines. It then demonstrates how to Dockerize a Python web scraping application by creating a Dockerfile to build an image, run a container from the image locally, push the image to a registry, and run the container on another host that pulls from the registry. References for further Docker learning are also included.



![Example
#!/usr/bin/env python
import sys
import requests
from bs4 import BeautifulSoup
r = requests.get(sys.argv[-1])
data = r.text
soup = BeautifulSoup(data)
for link in soup.find_all("a"):
print(link.get("href"))
FROM python
LABEL maintainer="Sawood Alam <@ibnesayeed>"
RUN pip install beautifulsoup4
RUN pip install requests
COPY main.py /app/
WORKDIR /app
RUN chmod a+x main.py
ENTRYPOINT ["./main.py"]
main.py Dockerfile](https://image.slidesharecdn.com/dockerize-your-projects-170720144413/85/Dockerize-Your-Projects-A-Brief-Introduction-to-Containerization-4-320.jpg)

