Podman Docker Socket Compatibility:

my podman config is like in the nixos wiki

virtualisation = {
    podman = {
      enable = true;

      # Create a `docker` alias for podman, to use it as a drop-in replacement
      dockerCompat = true;

      # Required for containers under podman-compose to be able to talk to each other.
      defaultNetwork.settings.dns_enabled = true;
    };
  };

but i still get error: Docker Socket Compatibility: Podman is not emulating the default Docker socket path: /var/run/docker.sock. Docker-specific tools may not work.

is there something missing?

https://search.nixos.org/options?channel=23.11&show=virtualisation.podman.dockerSocket.enable

Thanks for the quick answer i totally missed that. But i also hat to add “podman” to my user extragroups :slight_smile:

virtualisation.podman.dockerSocket.enable does not work for me!

podman compose up creates a directory instead of a sock:


zvictor@zvictor-i7:~/tmp > ls -la $XDG_RUNTIME_DIR/podman/podman.sock

lsd: /run/user/1000/podman/podman.sock: No such file or directory (os error 2).

If I delete the folder and run podman compose up again, it recreates the folder.