this post was submitted on 28 Jun 2023
289 points (98.0% liked)

Asklemmy

43757 readers
2316 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] pepsison52895@lemmy.one 2 points 1 year ago (1 children)

Good to know! Sounds like another reason for me to start learning Docker.

[โ€“] dandroid@dandroid.app 1 points 1 year ago

It's an amazing software. Just today I needed to spin up a super simple webserver just to share a file with another program who needed to download it via https. Literally one command and I had an Apache server serving an arbitrary folder with a specified SSL certificate for HTTPS. And then one more command to shut it down, and it's gone. No software to uninstall when I don't need it anymore. No leftover files (well, the images are cached, but that's super easy to clear).

And then just a few hours later, I wanted to test the same program using a samba share instead of https. One command, bam. Sharing the same folder with samba. And then one command and it's gone.

And say you want to upgrade your apache version later, you don't need to worry about if your package manager is pointing to the newest version. You just restart your container with the latest tag and you have the latest version.

I'm actually rewriting a lot of my services to be in containers. I host a few discord bots for a community that my wife is an admin of. I accidentally updated my server's version of python once and nuked a few bots (Discord's API updated and I had to change some code in the new version). I containerized my bots, and now they will always have their own python version independent of my server's version. And I made sure to specify a version tag rather than using the latest tag, so they will never change. It makes it way easier to make sure it never breaks.