πŸ³πŸ“¦ Docker

0 Comments

Before we get started

πŸ‘‡ Topics and Purpose for Beginners Starting to Learn IT.

πŸ’‘ Keywords:

  • 🐍 Python is a programming language
  • 🧊 VirtualBox is a powerful open-source virtualization software.

🧠 Let's say, if I need to deploy an application that requires Python version 2 on a server, I usually install it directly on the host machine. However, the next day, I need to deploy another application that uses Python version 3. This creates a conflict, preventing me from deploying both applications as intended. I have to deploy an application with Python version 2 on a server.

Image

πŸ’‘ I decided to use VirtualBox, which helps me work effectively. I don't mind how many versions are available for the application. VirtualBox has truly changed my life. Image

However, I have another problem; I need to spend more on that server. That's why the container truly saved me again. πŸ‘‡ Image

🐳 What is Docker?

Docker is a platform that uses containers to run applications. Containers are lightweight, portable, and contain everything needed to run an application (code, dependencies, system tools).

🐳 Why is Docker so popular?

  • Portability: Works across different OS environments.
  • Scalability: Easily scale applications with container orchestration tools like Kubernetes.
  • Efficiency: Uses fewer resources compared to virtual machines.
  • Dependency Management: No more "works on my machine" issues.

⚑ Another important thing! How does docker work?

Image

Here’s a high-level overview of how Docker works:

  1. You write a Dockerfile (a script that defines what goes into the container).
  2. You build an image from the Dockerfile.
  3. You run a container from that image.
  4. The container runs in an isolated environment on your system.

πŸ‘‡ Last but not least

🧠 Docker doesn’t just build containers β€” it builds consistency, speed, and confidence in every deployment