When running apps on a docker swarm sometimes we know from the monitoring/alerting system just a container hostname, but measures should be taken on the host. For example, free up some disk space. I’ve struggled to find a way to find it out in an easy way, but haven’t succeeded. So, I came up with…
Tag: bash
Run pdftk on Ubuntu 18.04 or later
The convenient pdf manipulation tool [cci]pdftk[/cci] is not available in Ubuntu 18.04 repositories because of some licensing incompatibilities. Using some docker magic and a small script we’ll use it as in previous Ubuntu releases, since it’s still available in 16.04 repositories. Here we will exploit the docker capabilities to run the [cci]pdftk[/cci] binaries in the…
docker-compose logs sorted by time
Trying to understand what’s happening inside your code running in multiple docker-compose containers by reading logs could be a terrible idea if log lines are outputted in a random manner. Which is true at least for docker-compose version 1.8.0, build 94f7016. This could be simply checked by running the following command several times. docker-compose logs|head Here…
Debian Etch patch ShellShock (BashDoor) vulnerability
Generally speaking if your hosting is using Debian Etch nowadays it is time to consider moving to a more contemporary OS. Nevertheless, here are the instructions on how to patch bash on Debian Etch to fix the ShellShock vulnerability: [cc lang=”bash”] #first find out the version you have so you know what to get for…