Tech Tutorials

Manage docker log size

When starting to run the container: docker run --log-driver json-file --log-opt max-size=10m --log-opt max-file=3 ... Whilst container is running: truncate -s 0 $(docker inspect --format='{{.LogPath}}' <container-name>)

Reduce disk usage /var/lib/docker/overlay2

Option 1: docker volume rm $(docker volume ls -qf dangling=true) Option2: This deleted all my stopped but current containers. Also deleted a bunch of images. Basically damaged my prod environment enough to waste significant time fixing it: docker system prune -a -f...

Add a Custom Fixed Header for Mobile Using Divi.

Acknowledgments to Elegant Themes. I didn't come up with this. I am just storing it here for easy future reference. Add the following CSS to the Custom CSS in Theme Options. @media (max-width: 980px) {...