Docker


🐳.


Upgrading Databases in Docker

2021-12-23 6 minutes #containers #docker

For me, every Monday is updates day. I run through all the entries in my Ansible hosts file and install any updates which may need running. All machines have OS updates, and the handful which run docker get their containers pulled.…

Reducing storage usage for Docker in LXC

2021-10-01 3 minutes #containers #docker #linux #self-hosting #server-2020

Docker containers (like onions) have layers. In your Dockerfile, each new RUN, COPY or ADD line creates a new layer (so do the others, but not ones which affect the filesystem). Each layer contains only the files which changed from the previous layer, which allows layers to be shared between containers, reducing download size and disk usage.…

Docker in LXC

2021-09-30 5 minutes #containers #docker #linux #self-hosting #server-2020

Docker is a great containerization technology for running applications. It keeps multiple applications completely isolated from each other, only allowing connections exactly when you tell them to. But what if you’re on a hypervisor? You want your host OS to be as lean as possible (else it defeats the point), but you don’t want the overhead and additional complexities which come from full on VMs?…

Backing up and restoring Docker containers

2020-12-06 5 minutes #containers #docker #linux #self-hosting

You should back up your data, properly! If you’re not, you’re playing a dangerous game with fate. Computers are pretty reliable, but they also go wrong, often. You should always backup your files, but backing up a containerized application isn’t quite as simple.…

Increase your Docker IP space

2020-10-30 #containers #docker #linux #self-hosting

Recently, I started setting up a new application on my docker host. It was late in the day, and I just wanted to get something up and working to play around with. Just my luck, I was met with wonderfully cryptic error:…

Container processes shouldn't run as root!

2020-08-18 4 minutes #containers #docker #security #self-hosting

Docker containers, and containers as a whole, are really just a regular program wrapped in some extra protections provided by the kernel (namely cgroups etc) to create isolation, and other interesting features. Unlike VMs, containers run closer to the host operating system, so close they use the same kernel, meaning it’s even more important to protect it.…

Keeping your Docker containers up to date

2020-07-27 5 minutes #containers #docker #self-hosting

Last year, I switched all of my hosting from arbitrarily installed packages to Docker. This made installing and configuring incredibly simple, but updating a little less defined. Whilst Docker itself is updated through the system package manager (probably), the containers themselves aren’t.…

Docker Website Server

#docker

If you, like me, have a website, you’ll probably need some way of serving it. And if, like me, your website is static, nginx is a great, lightweight and insanely fast file server. But, how do you configure it? Sometimes, you just don’t care, and want someone else to do it for you - like me!…