How do I run a docker container declaratively on nixos server ? I am trying to run whoogle on a nix server and I don’t wish to manually restart the whoogle container everytime I restart the server.
How do I run a docker container declaratively on nixos server ? I am trying to run whoogle on a nix server and I don’t wish to manually restart the whoogle container everytime I restart the server.
2
Answers
After bit of guidance from the r/nixos community settled with this.
Use
--restart always
with docker command at initial startenable docker service to start at boot
And your container will start at boot