Blog

The coding community has given me so much. The tutorials, shared knowledge, and helpful tips have taught me more than I could ever have learned alone. Through this blog, I hope to give back a little by sharing practical guides, lessons learned from my own projects, and small insights that might help others who do not have a formal education in coding. Knowledge grows when shared, and every contribution makes a difference.

All Programming Docker
Docker Introduction (Part 2): Volumes & Persistent Data
By Alexander Eriksson • August 20, 2025

Docker containers are ephemeral, meaning any data they store is lost when the container is stopped. To persist data, we must use volumes. There are two main types: bind mounts and named volumes. Bind mounts are used primarily for development, as they link a directory on your host machine to a directory inside the container, giving you direct access to the files. Named volumes, on the other hand, are the preferred method for production environments. Docker fully manages these volumes, storing the data within its own system. They are not tied to a specific host path, making them more portable and less prone to permission issues. In essence, while bind mounts offer direct control, named volumes provide a more robust and production-ready solution.

Read More
Docker Introduction (Part 1): Virtualization & Containerization
By Alexander Eriksson • August 16, 2025

As a self-taught programmer, I've often found that online resources jump straight into practical applications without explaining the fundamental concepts first. This is also true with Docker. Many tutorials show you how to set up an entire web server in a container, but they leave you wondering, "What is an image?" This guide is the first in a series on Docker aimed to anyone who has ever felt that gap in their knowledge. The goal is to build a solid understanding of how Docker works from the ground up, so you'll be prepared to configure things on your own, long after the tutorial ends. When you've finished this guide, you'll have a better understanding of Docker than most of its users.

Read More
Solving UFW and Docker iptables Conflicts on Ubuntu
By Alexander Eriksson • August 10, 2025

I ran into a surprise when Docker completely ignored my UFW rules, leaving my containers exposed. Here’s how to fix it by adjusting UFW’s forwarding policy and adding proper routing rules to protect your data.

Read More