Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I moved to nixos and to be honest I don't miss much using docker. You can restrict your app pretty easily on linux without using a container.

The reason I moved away from containers was because of a linux kernel bug which slowed down network requests through docker. I was working on a latency sensitive application at the time, so I just moved nginx and my containers to real machines.

Setting up things manually wasn't great, especially when deploying to multiple machines, so I just wrote a few different nix configurations and created some Digital Ocean machines with nixos-infect as a init script. There was definitely a learning curve as the language is peculiar (2-3 days to get nginx + postgres + redis + python app), but after doing it once I can pretty much deploy anything I want in a fast and immutable way. Replicating a similar system with a node.js app took less than a hour.

Changing something on the fly is still possible and you have access to everything. I run everything as a systemd services that I can limit with cgroups.

You may run into problems if you're relying on an old package that it's not on nixpkgs, but adding local derivations is quite straightforward (and you can always take inspiration from nixpkgs).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: