Can we have something that is like a Docker container, but instead of renting virtual machines and running Docker on them we just automatically turn them into an OS In the way the Dockerfile describes?
Discussion
NixOS, kinda.
Also a kinda, Fedora CoreOS https://docs.fedoraproject.org/en-US/fedora-coreos/getting-started/
Do you want to produce an OS image?
I think you are referring to Unikernels... MirageOS for example.