Hi all,
I’m trying to add a container to my config with:
virtualisation.docker = {
enable = true;
enableOnBoot = true;
};
virtualisation.oci-containers = {
backend = "docker";
containers = {
nocodb = {
image = "nocodb/nocodb:latest";
ports = ["8080:8080"];
volumes = ["/home/xxx/nocodb:/usr/app/data/"];
};
};
};
If I do sudo nixos-rebuild switch --flake .#
, I get a service docker-nocodb
and I can log in and use it fine. However, without the autoStart
option, I don’t get this service anymore on reboot. I mean I can’t start it with systemctl start docker-nocodb
or something similar and I can’t see it either under systemctl list-units --all | grep nocodb
or in the actual .service
files under /run
.
How can I do this: “If this option is set to false, the container has to be started on-demand via its service.”?