I’m using these settings to setup Podman on my computer:
{ config, pkgs, ... }:
{
virtualisation = {
podman = {
enable = true;
dockerCompat = true;
dockerSocket.enable = true;
extraPackages = [ pkgs.zfs ];
defaultNetwork.dnsname.enable = true;
};
# Rootless podman on ZFS
containers.storage.settings = {
storage = {
driver = "zfs";
graphroot = "/var/lib/containers/storage";
runroot = "/run/containers/storage";
};
};
# Disable NixOs Containers (conflicts with virtualisation.containers)
boot.enableContainers = false;
# Disable firewall, so other machines can access the containers
networking.firewall.enable = false;
# Handy packages
environment.systemPackages = with pkgs; [
podman
podman-compose
podman-tui
];
}
And I can run containers, but when I try to get the logs I get an error:
$ podman run hello-world:latest
# omitting the output here
$ podman logs vigorous_ellis
Error: initial journal cursor: failed to get cursor: cannot assign requested address
I tried to google this error, but couldn’t find what is the cause. I also tried to change the log driver to k8s-file
to no success, with:
virtualisation.containers.containersConf.settings = {
log_driver = "k8s-file";
};
How can I troubleshoot and fix this?