270
What is Docker? (lemmy.world)
submitted 1 year ago* (last edited 1 year ago) by Jofus@lemmy.world to c/selfhosted@lemmy.world

Hi! Im new to self hosting. Currently i am running a Jellyfin server on an old laptop. I am very curious to host other things in the future like immich or other services. I see a lot of mention of a program called docker.

search this on The internet I am still Not very clear what it does.

Could someone explain this to me like im stupid? What does it do and why would I need it?

Also what are other services that might be interesting to self host in The future?

Many thanks!

EDIT: Wow! thanks for all the detailed and super quick replies! I've been reading all the comments here and am concluding that (even though I am currently running only one service) it might be interesting to start using Docker to run all (future) services seperately on the server!

you are viewing a single comment's thread
view the rest of the comments
[-] ICastFist@programming.dev 3 points 1 year ago

So instead of having problems getting the fucking program to run, you have problems getting docker to properly build/run when you need it to.

At work, I have one program that fails to build an image because of a 3rd party package who forgot to update their pgp signature; one that builds and runs, but for some reason gives a 404 error when I try to access it on localhost; one that whoever the fuck made it literally never ran it, because the Dockerfile was missing some 7 packages in the apt install line.

[-] turmacar@lemmy.world 8 points 1 year ago

Building from source is always going to come with complications. That's why most people don't do it. A docker compose file that 'just' downloads the stable release from a repo and starts running is dramatically more simple than cross-referencing all your services to make sure there are no dependency conflicts.

There's an added layer of complexity under the hood to simplify the common use case.

[-] grue@lemmy.world 3 points 1 year ago* (last edited 1 year ago)

Yeah, it's another layer, and so there definitely is an https://xkcd.com/927/ aspect to it... but (at least in theory) only having problems getting Docker (1 program) to run is better than having problems getting N problems to run, right?

(I'm pretty ambivalent about Docker myself, BTW.)

[-] Nibodhika@lemmy.world 2 points 1 year ago

There are two ends here, as a user and as a developer. As a user Docker images just work, so you solve almost every problem you're having which would be your users having them and giving up on using your software.

Then as a developer docker can get complicated, because you need to build a "system" from scratch to run your program. If you're using an unstable 3d party package or missing packages it means that those problems would be happening in the deploy servers instead of your local machines, and each server would have its own set of problems due to which packages they didn't have or had the wrong version, and in fixing that for your service you might be breaking other service already running there.

this post was submitted on 28 Apr 2025
270 points (100.0% liked)

Selfhosted

61236 readers
143 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS