3 ms·
What are you talking about? Docker is THE solution for self hosting stuff since one often has one server and runs a ton of stuff on it, with different PHP, Pyt
by tacker2000 1y ago
What are you talking about?
Docker is THE solution for self hosting stuff since one often has one server and runs a ton of stuff on it, with different PHP, Python versions, for example.
Docker makes it incredibly easy to a multitude of services on one machine however different they may be.
And if you ever need to move to a new server, all you need to do is move the volumes (if even necessary) and run the containers on the new machine.
So YES, self hosting stuff is a huge use case for docker.
- sunshine-o 1y agoI think your view show the success of Docker but also an over-hype and generation that only know how to do things with Docker (or and so think everything is easier with it). But before Docker there was the virtualisation hype when people sweared every software/service needs its own VM. VM or containers we end up with frankenstein systems with dozens of images on one machine. And with Docker we probably lost a lot of security. So this is fine I guess in the corporate world because things are messy anyway and there are many other contraints (hence the success of containers). But in your home, serving a few apps for a few users you actually don't need that gas factory. If you wanna run everything on your home lab with Docker or Kubernetes because you wanna build a skillset for work or reuse your professional skills, fine go for it. But everything you think is easy with Docker is actually simpler and easier with raw Linux or BSD.
- tacker2000 1y agoWhy are you assuming my age and experience because I use Docker? This doesnt help your argument. I have been around since long before Docker was a thing, so yes I have been there, serving apps on bare metal and then using unwieldy VMs. It doesnt matter if its my home lab or some Saas server, how is it simpler to serve 3 PHP apps with different PHP versions on raw linux than simply using docker for example? This is called progress and thats why its a popular tool. Not because of some “hype” or whatever you are implying.
- sunshine-o 1y ago> It doesnt matter if its my home lab or some Saas server, how is it simpler to serve 3 PHP apps with different PHP versions on raw linux than simply using docker for example? You got me, I have no idea how to manage PHP. Intuitively I would try to solve that problem with Nix first. But here if you can't run two PHP versions on the same OS I would say the flaw is at the PHP level or how distributions handle it. So personally in my home I would probably avoid it and be grateful containers solve this problem for me at work. To end on a more positive note, if you like Docker I would recommend you check FreeBSD Jails too because you probably gonna love it. I used both but Jails have a level of integration in the OS which is next level (if used with ZFS). You really get the best of both world.
- tacker2000 1y agoYes, running 2 php versions at the same time is quite tricky. One can do it using symlinks, but its a pain. Its the same like running multiple versions of python (python vs python3, etc… cue the xkcd meme pic). in the end its all a mess and thats why docker is such a nice thing. Thanks for the heads up i will check Jails out.