Dockerfile: How to run as non-root user

Recently I’ve deployed some Spring Boot services using Docker. Going through some blog posts about best practices, I’ve noticed that we run the application as a root user inside the container. This is a security issue when the Docker Daemon is run as root. There is a rootless mode but I haven’t encountered that yet in the wild. To check if your Docker Daemon is running as root you can use:...

February 17, 2022 · 1 min · 155 words

Pi-hole: an ad-blocking DNS Server

Since COVID hit, I cooked more frequently (probably as pretty much everybody else) and was increasingly frustrated with the the sheer amount of ads on cooking websites. On a computer I could install an ad blocker but on the phone? I had to find a solution that works on phones and on tablets. I shopped around and eventually found Pi-hole. Installing it on a Raspberry Pi 4 was a breeze. I added a recursive DNS server (unbound) that resolves hostnames from our router (FRITZ!...

January 31, 2021 · 1 min · 137 words

How to become a better software developer: podcasts

Those 30 minutes in the subway? The 2 hour drive to your parents? Driving home from work by bicycle? You can probably add at least one more activity to this list of things where something other than music in your ears could be a nice change. So why not do something that improves your knowledge as a software developer? I’m talking about podcasts. Personally, I started to listen to podcasts on the way to work as a means to switch context from home to work....

October 30, 2017 · 1 min · 192 words

Blogging... again!

When I began my adventure within the depths of the internet I also started to blog. Like so often, at some point it wasn’t doing anything for me anymore. So I stopped. Since I’m now done with university I thought to myself: this might be another good time to start blogging again, professionally. This means my contributions here on this blog will mostly be related with software engineering. When stumbling across interesting webpages I usually archive them....

June 10, 2017 · 1 min · 131 words