I just put my docker services in a lxc container. Docker is neat and lets me deploy shit without having to worry. Works pretty well, just remember to put your lxc containers on your SSD and not your raid mass storage (my hdds have errors now, fuck)
I see people not happy with Docker as a company, and, I get that, tech co. Lol
But I gotta admit, it’s definitely been awesome for self hosting. My home server would probably just be OpenMediaVault and a Samba share if I couldn’t just spin up compose files and had to worry about every app wanting its own database and stuff!
Are there better alternatives for newbs who just wanna self host stuff?
Are there better alternatives for newbs who just wanna self host stuff?
Docker is great for a beginner, and even for an expert too. I’ve been self-hosting for 20 years and love Docker.
Back in “the old days”, we’d use Linux-VServer to containerize stuff. It was a bit like LXC is today. You get a container that shares the same kernel, and have to install an OS inside it. The Docker approach of having an immutable container and all data stored in separate volumes was a game changer. It makes upgrades so much simpler since it can just throw away the container and build a new one.
The main alternative to Docker is Podman. Podman uses the same images/containers as Docker - technically they’re “OCI containers” and both Docker and Podman implement the OCI spec.
Podman’s architecture is different. The main difference with Podman is that it never runs as root, so it’s better for security. With Docker, you can either run it as root or in rootless mode, but the default is running it as root.
(Chorus) Heave ho, Docker, and sail the binary sea, With containers all lined up, so light and free. From the code to the cloud, we’ll go with ease, In our trusty Docker ships, we sail the seas.
(Verse 1) Oh, the devs were a-struggling, in a stormy plight, With dependencies broken, things weren’t quite right. Then Docker sailed in, with a promise so bold, Of consistent environments, as good as gold.
(Chorus) Heave ho, Docker, and sail the binary sea, With containers all lined up, so light and free. From the code to the cloud, we’ll go with ease, In our trusty Docker ships, we sail the seas.
(Verse 2) We build and we ship, with our Docker compose, In our microservices, our confidence grows. With images light and containers so tight, We deploy in the morning, and sleep sound at night.
(Chorus) Heave ho, Docker, and sail the binary sea, With containers all lined up, so light and free. From the code to the cloud, we’ll go with ease, In our trusty Docker ships, we sail the seas.
Docker is still useful even for apps that compile to a single executable, as the app may still depend on a particular environment setup, particular libraries being available, etc.
If you’re doing it right, containers are less like VMs and more like cgroups. If orchestrated correctly it uses less system resources to run lots of services on a single system/node.
That said, I’m a devops/infrastructure/network professional and not a developer, so maybe I’m missing something from the dev experience… But I love containers.
Docker does kinda suck now, though. Use podman or another interface instead if you can help it.
I’ve seen many a terrible containerized monolithic app.
I’ve seen plenty of self-hosters complain when an app needs multiple containers, to the point where people make unofficial containers containing everything. I used to get downvoted a LOT on Reddit when I commented saying that separating individual systems/daemons into separate containers is the best practice with Docker.
Separate containers works like a dream when one app starts shitting the bed, gets auto-cycled, and everyone else just chills. Not surprised on the Reddit downvotes though. That place is so culty, especially now.
I’ve recently spent a fair amount of time trying to peel my blog away from my existing framework due to how much I hated using docker to just build a website, it doesn’t need to be this heavyweight.
That’s one of my dilemmas. Due to using BSD and relying on jails I have a hard time using lots of possibly nice apps being released nowadays because they only offer the docker way of installing.
Virtualization was supposed to reduce the overhead, not create entire DevOps departments.
Years of containerization yet no real use over make clean; make build
Wanted to deploy your app in the “cloud” anyways for a laugh? We had a tool for it, it’s called rsync
Let’s run a virtual container in –privileged mode, so we can manage system resources from it – Statements dreamt up by utterly Deranged
Look at what tech interviews have been demanding your Respect for all these years. (These are real documentation examples for how a simple virtualization supposedly works)
programmer_humor
Newest
This magazine is from a federated server and may be incomplete. Browse more on the original instance.