this post was submitted on 10 Feb 2025
40 points (97.6% liked)
Explain Like I'm Five
14968 readers
8 users here now
Simplifying Complexity, One Answer at a Time!
Rules
- Be respectful and inclusive.
- No harassment, hate speech, or trolling.
- Engage in constructive discussions.
- Share relevant content.
- Follow guidelines and moderators' instructions.
- Use appropriate language and tone.
- Report violations.
- Foster a continuous learning environment.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I also dont get how to update docker containers and where to save config files. The idea is that the containers are stateless so they can be recreated whenever you like.
But there are no automatic updates?? You need a random "watchtower" container that does that.
Also, they are supposed to give easy security, buf NGINX runs as root? There is a rootless variant
No automatic updates is a feature not a bug.
I guess the idea/hope is that they can't break out of their container.
(Not an expert, but use it some) Configs: most of the time you mount a directory that’s specifically set up for (that/a) container, and that’s persistent on the host. When you spin up its replacement, it has the same mapping.
Automatic updates - from what I remember, yeah, you can even just (depending on needed uptime) schedule a cron job to pull the new image, kill the existing, and start up the new, and if it doesn’t start then you roll back to the previous.
Security - there used to be a debate over it (don’t remember current SOTA) in theory both are pretty safe but the rootless gives more security with some tradeoffs.
Okay mounting a directory for configs makes sense