<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Linux on José Ángel's Blog</title><link>https://blog.joseangelinfra.dev/en/tags/linux/</link><description>Recent content in Linux on José Ángel's Blog</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Tue, 17 Nov 2026 11:30:00 +0100</lastBuildDate><atom:link href="https://blog.joseangelinfra.dev/en/tags/linux/index.xml" rel="self" type="application/rss+xml"/><item><title>A firewall that really filters with Docker: ufw and DOCKER-USER</title><link>https://blog.joseangelinfra.dev/en/posts/firewall-docker-ufw-docker-user/</link><pubDate>Tue, 17 Nov 2026 11:30:00 +0100</pubDate><guid>https://blog.joseangelinfra.dev/en/posts/firewall-docker-ufw-docker-user/</guid><description>&lt;p>A server with &lt;code>ufw&lt;/code> enabled and the incoming policy set to &lt;code>deny&lt;/code> looks closed. With Docker it is not: a container with &lt;code>ports: &amp;quot;3306:3306&amp;quot;&lt;/code> is reachable from any machine on the network even though &lt;code>ufw status&lt;/code> does not allow it. This guide explains why that happens and how to set up a filter that works, with a rule that survives reboots.&lt;/p>
&lt;p>&lt;img src="https://blog.joseangelinfra.dev/img/posts/firewall-docker-ufw-docker-user-1.en.svg" alt="Diagram of a packet’s path: it reaches the machine, goes through Docker’s address translation, the FORWARD chain and the DOCKER-USER chain before reaching the container">&lt;/p></description></item><item><title>Docker Compose beyond up: networks, volumes and where your data lives</title><link>https://blog.joseangelinfra.dev/en/posts/docker-compose-redes-volumenes/</link><pubDate>Mon, 16 Nov 2026 23:00:00 +0100</pubDate><guid>https://blog.joseangelinfra.dev/en/posts/docker-compose-redes-volumenes/</guid><description>&lt;p>Starting a container with &lt;code>docker compose up -d&lt;/code> is easy. The hard part comes months later, when you have twenty containers and someone asks where each one keeps its data, which container talks to which, and what happens if you delete something. This guide explains how I organise it in my homelab and the commands I have learned not to run lightly.&lt;/p>
&lt;p>&lt;img src="https://blog.joseangelinfra.dev/img/posts/docker-compose-redes-volumenes-1.en.svg" alt="Illustrated diagram of several containers connected through separate networks, each with its data folder next to it">&lt;/p></description></item><item><title>Install Docker and Docker Compose on Ubuntu</title><link>https://blog.joseangelinfra.dev/en/posts/instalar-docker-compose-ubuntu/</link><pubDate>Sat, 14 Nov 2026 10:00:00 +0100</pubDate><guid>https://blog.joseangelinfra.dev/en/posts/instalar-docker-compose-ubuntu/</guid><description>&lt;p>This guide installs Docker Engine and the Docker Compose plugin from Docker&amp;rsquo;s official repository on Ubuntu. It is preferable to the distribution packages because it receives new versions and security fixes sooner. It is the same method I use in my homelab, and at the end I describe the problems it gave me and how to avoid them.&lt;/p>
&lt;p>In short, once the official repository is added:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>sudo apt install docker-ce docker-compose-plugin
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo usermod -aG docker &lt;span style="color:#8be9fd;font-style:italic">$USER&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>docker compose up -d
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="requirements">Requirements&lt;/h2>
&lt;ul>
&lt;li>Ubuntu Server on a supported LTS version (22.04, 24.04 or 26.04), 64-bit.&lt;/li>
&lt;li>A user with &lt;code>sudo&lt;/code> permissions.&lt;/li>
&lt;li>No unofficial packages such as &lt;code>docker.io&lt;/code>, &lt;code>containerd&lt;/code> or &lt;code>runc&lt;/code> installed; they conflict with the official ones.&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>sudo apt remove docker.io containerd runc
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Uninstalling does not delete your images, containers or volumes in &lt;code>/var/lib/docker/&lt;/code>.&lt;/p></description></item><item><title>Nginx as a reverse proxy with HTTPS and Certbot</title><link>https://blog.joseangelinfra.dev/en/posts/nginx-proxy-inverso-https/</link><pubDate>Thu, 12 Nov 2026 10:00:00 +0100</pubDate><guid>https://blog.joseangelinfra.dev/en/posts/nginx-proxy-inverso-https/</guid><description>&lt;p>A reverse proxy receives requests from the internet and forwards them to an application that only listens locally. This way the application is not directly exposed and Nginx handles HTTPS. I use it in my homelab and in Unit 4 of my Web Application Deployment course; this guide covers the basic path and, at the end, the mistakes I made along the way.&lt;/p>
&lt;p>When everything is set up, the app answers over HTTPS:&lt;/p></description></item></channel></rss>