Docker and it’s Internal Networking
Had an interesting little issue happen today. I have a VPS where I host this and several other wordpress instances for friends. All of it runs inside nice orderly docker containers dictated by a compose file. All of them share the same network to talk to the reverse proxy.
The wordpress container talks to the database container through docker’s use of internal DNS referencing the name of the service. Considering I use the same template for each instance there’s now a whole bunch of wpdb containers and no clear way to tell which one is which.
Its laid out more clearly here by someone who was experiencing the same intermittent database errors.
https://stackoverflow.com/questions/78983153/intermittent-error-establishing-a-database-connection-errors-with-wordpress-on
Turns out there’s a several years old discussion about this on docker-compose github: https://github.com/docker/compose/issues/8223
Best workaround for now is to have clearly labeled aliases for your database containers!
7 Quick Steps for Managing #Docker Containers on #Debian VPS Servers
This guide provides 7 quick steps for managing Docker containers on Debian VPS servers. It is designed for system administrators and developers who are familiar with basic Linux commands and concepts.
7 Quick Steps for Managing Docker Containers on Debian VPS Servers
Docker has revolutionized the software development industry by making it possible to package applications ...
Continued 👉 https://blog.radwebhosting.com/7-quick-steps-for-managing-docker-containers-on-debian-vps-servers/?utm_source=mastodon&utm_medium=social&utm_campaign=mastodon.social #vpsguide
Dokploy has genuinely upgraded my homeserver setup to the ponit where it's arguably at it's most resillient ever.
I still need to setup global brute-force/ddos protections (i.e. fail2ban etc), but that's relatively low-risk with individual services blocking you after 3 failed attempts for x time anyway.
The beeee's they are swaaarming 🐝
#tech #selfhosting #docker #dockerswarm #dokploy

The new Kubernetes mount-an-OCI-artifact feature got me thinking about backups, layers, data locality, and deduplication via CAS.
Imagine using image layers as snapshots and pushing images as your application's data backup. Then by specifying latest* for the volume mount it would automatically come up with eagerly-cached, local data.
I don't think CAS helps our case for storage here as a layer-snapshot mapping isn't granular enough. Of course it's not like you'd want to redesign your Postgres paging configuration entirely around a better mapping to image layers but there's something there...
Registry-side you could do periodic compaction, archival, export etc.
OCI image layers are already limited though last time I checked. Nix maps derivations (think packages) to layers and neither OCI nor the tooling were designed for that kind of blowout. Could be tackled though.
*yes yes, anti pattern. Hold ur underwear a moment.
#OCI #Containers #Kubernetes #k8s #PlatformEngineering #DevOps #Cloud #Docker
Mal wieder nach langem etwas "gebastelt".
Diesmal ist es eine Alternative zum "schwergewicht - Mastodon", nennt sich "GoToSocial". Natürlich im Docker betrieben. Mal sehen was draus noch wird: => https://me.retronerd.at/@schiwagoa <=
#selfhost #docker #homelab #fediverse

How to solve weird Docker Errors on Ubuntu
After being so happy about all the services that I brought up last weekend, I forgot to do one thing: rebooting. Today I rebooted for some reason and the containers didn’t came up again.
[…]
https://www.locked.de/how-to-solve-weird-docker-errors-on-ubuntu/
Finally found a working #meshtastic bot that responds to several commands sent over the air, including ping, sysinfo, weather, and bbs services.
Did not test it thoroughly, but looks pretty impressive so far.
And it is installable via #docker image.
https://github.com/SpudGunMan/meshing-around
Just gave my site a full redesign 🚀
Cleaner, faster and easier to find everything Docker, Kubernetes and DevOps.
Take a look and tell me what you think: https://www.heyvaldemar.com/
Entdecke die faszinierende Welt der Docker Container! 🐳 Lerne alles über Erstellung, Verwaltung und Stoppen in unserem neuesten Artikel. Ein Muss für alle Technik-Enthusiasten! Reblog des Artikels von @lars@dasnetzundich.de. Lies mehr: https://dasnetzundich.de/die-welt-der-docker-container-erstellung-verwaltung-und-stoppen/ 📖👉 #Docker #TechBlog
Inhaltswarnung:Shitpost
Gibt es eine statische Auswertung ob Stockimage macherinnen den Aufstieg von #Docker und #Kubernetes in den Nutzerzahlen von Schiffscontainer Bildern sehen können?
If you are using NPM (#NginX proxy Manager container) you may be getting 502 Gateway errors from Resty.
There is a whole shopping list why it does not work...
But what I found works for me is replacing the container name with the internal Docker IP address.
Will probably fail when the stack is restarted... so better not restart 0_o
I was trying the NPM container because its got a nice GUI and allows Advanced NginX configurations.
My previous NginX container was #SteveLTN /https-portal which was pretty robust and flexible. But no GUI and no Advanced configs (not that I could get them working anyway).
Havnt tried #traefik yet. But it seems every proxy has its own weirdness.
🚀 Neu im Blog: "Docker-Compose: Einfache Anwendung mit 'Hello World'"! Erfahrt, wie ihr mit Docker-Compose schnell loslegen könnt. Ein einfacher Einstieg für alle, die sich in die Container-Welt wagen wollen. Reblog @lars@dasnetzundich.de. Jetzt lesen! 👉 https://dasnetzundich.de/docker-compose-einfache-anwendung-mit-hello-world/ #Docker #TechTips