How do I run the ecosystem the docker already has with nix alone?
It's not just the runtime.
I'm not certain what "ecosystem" means in this context, but you can build docker images using Nix. It's actually pretty cool because the image only contains the runtime dependencies of whatever you throw in the container. No package manager or build system is included. I've only tinkered with Nix, nothing in my professional life, so YMMV.
Re:Docker Apology
by ParetoOptimal on Thursday March 16, 2023 @10:53PM
(#35192367)
I'm super interested in the ecosystem you mean here. I'm assuming that you mean ecosystem around images like kubernetes, ECS, etc like the other commenter guessed?
If so, I think Nix being able to create docker images addresses that specific concern.
Can nix run images created with docker?
Re:Docker Apology
by ParetoOptimal on Friday March 17, 2023 @09:42AM
(#35196943)
Yes.
See https://nix.dev/tutorials/building-and-running-docker-images
Or do you mean run as in "use docker image(s) within a nix expression". Like if you have a webapp with a nix devshell but want to start the docker postgres container for development?
You can do that too, yes.
I can easily install many apps hosted at the Docker hub but how would I achieve that without Docker hub, unless everyone starts hosting things elsewhere but that'll take a good while assuming the community's consensus is to ditch Docker altogether.
Re:Docker Apology
by ParetoOptimal on Friday March 17, 2023 @09:43AM
(#35196958)
> I can easily install many apps hosted at the Docker hub but how would I achieve that without Docker hub,
I'm sorry, I don't understand what you mean.
What a thing, docker. I can't get over the staying power it has had despite... Everything.