Today I gained an interesting insight into Docker image sizes. When I use python:3.12, the image size is around 1.82GB. But when I switch to python:3.12-alpine, it’s amazing to see that the size drops to just 293.42MB. This happens because python:3.12 is based on a Debian image, whereas Alpine is built on Alpine Linux, which uses a minimal operating system. Of course, there are some trade-offs, such as missing pre-installed packages. As a beginner learning Docker, I’ve realized that Docker is not just about containers, tools, or commands. It’s about understanding the core concepts of operating systems how cgroups and namespaces work in Linux, and why tools like Docker Desktop are needed. It’s truly about understanding the underlying system and its architecture. I’m grateful to be learning this through Habib vai’s tutorial. #Happy_Learning #Docker #DevOps
Docker Image Size Comparison: Debian vs Alpine Linux
More Relevant Posts
-
💻 I Spent 2 Hours Debugging… for a 2-Minute Fix While practicing Python on Linux, I ran into a simple issue: My script just wouldn’t run. No output. No clear error. After trying multiple things, I finally found the problem 👇 👉 I was running the file incorrectly in the terminal 👉 And missed checking the Python version. Fix: ✔️ Used python3 file.py instead of python file.py ✔️ Verified with python3 --version Simple mistake. But it cost me 2 hours. What I learned: Small details matter a lot in tech Always check basics before overthinking Debugging is where real understanding happens Moments like these can feel frustrating, but they’re also the ones that stick the most. Curious—what’s a “simple mistake” that cost you hours? #Python #Linux #Debugging #DevOps #LearningJourney #TechLearning #Beginners
To view or add a comment, sign in
-
-
Today marked the point where a Flask app that runs became one that runs correctly: replacing the development server with Gunicorn, introducing worker processes, and moving runtime decisions into environment variables. What stood out wasn’t the commands themselves, but how much clearer the boundaries became; what belongs in code, what belongs in configuration, and what belongs to the environment. I’ve realized that these transitions matter more than features at this stage. Understanding them makes everything else easier to reason about later. Next session: tightening up how runtime configuration is persisted. #SoftwareDevelopment #Python #Flask #AWS #Linux #Gunicorn
To view or add a comment, sign in
-
🐍🐋 Python Docker Tutorials — Docker is a containerization tool used for spinning up isolated, reproducible application environments. This page lists all of our #Python Docker tutorials. https://lnkd.in/gY9nhPX
To view or add a comment, sign in
-
Built capsule, a container runtime (similar to Docker). A custom Alpine Linux image with Python installed boots in under 3µs. Also wrote a blog about it (https://lnkd.in/dxzT7AVE) :p GitHub Repo: https://lnkd.in/d4nmCTS8 #golang #LearnInPublic #BuildInPublic
To view or add a comment, sign in
-
-
A Schrödinger-like Python Program This program runs and it doesn't run at the same time, can you spot the error? (This is the only reason why Python shouldn't be used in any kind of production code. Linux Mint installer (and perhaps any Linux installer derived from Ubuntu) includes this kind of mistake.)
To view or add a comment, sign in
-
-
I'm probably late to this party, but Copy Fail (CVE-2026-31431) is the most horrifyingly straightforward and effective root shell compromise I've seen since the 90s. A short python script elevates to root, reliably, for any user. Patch *now*. Make sure to reboot -- or at least read the docs -- if you try the exploit, because it will persist for a time! https://copy.fail #infosec #linux #copyfail
To view or add a comment, sign in
-
💻 Four words. Zero fluff. "Talk is cheap. Show me the code." — Linus Torvalds In tech, your work speaks louder than your words. Anyone can say they know React, Python, or System Design. But your GitHub, your projects, your commits — those don't lie. -> Stop overthinking. Start shipping. -> Stop planning perfectly. Start building messily. -> Stop talking about what you'll build. Build it. The best portfolio is the one you actually push. #OpenSource #Linux #Developers #BuildInPublic #Code #SoftwareEngineering
To view or add a comment, sign in
-
-
heads up a nasty Linux kernel vuln just dropped: Copy Fail (CVE-2026-31431). Any regular user can root the box with a tiny Python script. No races, no extra perms, been possible for years on pretty much every major distro. Full details + PoC: https://copy.fail/ Patch your kernels ASAP folks.
To view or add a comment, sign in
-
Docker containers are the new node_modules. We went from: > 500MB dependencies in package.json > To 2GB base images with Alpine Linux > To 8GB with "lightweight" Python ML stacks We're just moving the bloat around. Same shit, different abstraction layer.
To view or add a comment, sign in
Explore related topics
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development