I see Docker mentioned every other thread and was wondering how useful it is for non development things, and if so what they are.
It’s useful for every service you want to host (on a server).
It’s so useful you see it mentioned on every other thread
https://lemmy.world/post/12995686 was a recent question and most of the answers will basically be duplicates of that.
One slight addition I want to add: “Docker” is just one implementation of “OCI containers”. It’s the one that broke through initially in the hype, but you can just as easily use any other (podman being a popular one) and basically all of the benefits that people ascribe to “docker” can be applied to.
So you might (as I do) have some dislike for docker (the product) and still enjoy running containers.
its a container system that saves you from dealing with interactions between server software, config files scattered everywhere and is even more secure and more portable.
it helps you use 1 server for many services without issues, being able to redeploy a given service without issues whenever needed.
its a bit counter intuitive to learn, but makes it plain easier and almost maintenance free to run a server if you set up things right.
In simple terms, it’s like a VM for an application. You set it up with the right dependencies and your application will “just work” on it, without having to deal with other applications existing alongside it.
What makes it better than a VM is that it is much faster. It interfaces with kernel features that help isolate the processes and files from the rest of the system. It is not virtualization, rather it is namespacing.
Docker also provides a bunch of tools that help with creating this environment automatically and allowing for some escaping into the host, such as binding ports and sharing data with the host’s file system.
Once this environment is created, it can be shared with uses as a single downloadable bundle, called an image. This makes it really easy to download and run an application without having to prepare your system with the right dependencies and files.
Nothing is free though, and the cost here is more disk space and some performance overhead, although it is close to native speed.
Wondering too, since Docker has a non-root mode, is there a reason to use Podman?
Two things, one you care about and one you might not. The one you care about: you can set up a service in isolation. You can then test it, make sure it works, and switch over to it once you are sure, with almost no downtime. This is important for things you actually need to use. Once you do something like breaking your primary email server, you will understand. Also, less important, you can set up a service on, say, a VM at home, and move it to a VPS, without having to transfer the entire image, and it will work the same. The one you don’t care about. That last bit about moving servers around is important for cloud providers who turn these things on and off all the time.
My company deploys a lot of cell modems. Some of them support containers. It’s really nice to deploy everything we need in one piece of equipment, as opposed to 2 or more, for a very simple application.
Several other pieces of network equipment support it now as well. A SIEM can run a remote node directly on a switch.
Docker is great because you can install something and all the shit it needs is installed and runs in that container. It’s good for a multitude of reasons mine are:
- No more installing a dependency, tool or library alongside a program that fucks up something else. No more shit breaking because you installed the latest python but some other program breaks if you move beyond 3.10 (and you forgot to use venv I guess).
- Somewhat a follow on from 1 but this makes for great functionality with self hosting. I can run a couple docker compose/build command and build/rebuild the containers anywhere I need them. I can test a container on a windows computer to see if it does what I want and works as intended and then spin the some container up on my media server, even if it’s a different OS. I have a bunch of them on my home server and it and it’s great being able to just plug in the port number of the other containers they need to talk to, if any, and that’s all. One container breaking doesn’t break everything else.
Aside from the technical explanation that others have given, here’s how I use Docker:
MeTube to rip videos and stuff easily. Just plug in a link and most times it’ll work. Here’s a list of all the supported sites.
I use Sonarr/Radarr and qBittorrent with gluetun to search for and download TV and movies that I watch on Plex.
I host my own Immich server that will automatically back up my photos from my phone just like Google Photos, except I own it all and it’s all kept private. It has its own machine learning and facial recognition, so I can search for “dog” and get all the pictures of my dogs, or I can search by person.
I use Docker for all this because the images come in little prepackaged containers. It’s super easy to get into once you figure out some of the basics.
Another great benefit of these containers is that you can transfer it to another system if needed. Just copy the config and data over to the new system and point the container in the right direction and it’ll pick up where it left off.
- When you’re prohibited from using nixos
- When there’s no package for it in nixos, and you’re lazy to package it yourself
To bloat things, to lower the bar to newcomers, to appease the business goals of large cloud companies and eventually to provide some isolation, security and create stateless environments: https://lemmy.world/comment/8341439
“The thing with Docker is that people don’t want to learn how to use Linux and are buying into an overhyped solution”
I stopped there. Thirty years of LINUX experience here. You’re a fool.
I read a bit further. You didn’t miss anything important.
Just look at landscape around here and other “selfhosting” boards and you’ll see what I’m saying.
I won’t, because I stopped there.
Your choice, you’re the one believing that 100% of the people using Docker are as proficient and you and me and use it the right reasons. Guess what, they don’t.
“how dare they use the right tool for the job without taking the time to learn how to do it sub optimally first”
Are you clairvoyant? I’m curious as to how you are aware of what I believe, beyond what I stated; that you’re a fool.
Your choice, you’re the one believing that 100% of the people… Blah blah blah
Didn’t be shitty. Telling somebody what they believe is shitty. Telling them they believe “100% of people do (anything)” is super shitty. And this whole shitty argument has nothing to do with docker.
Go be shitty elsewhere.