Podman

From NixOS Wiki
Revision as of 07:05, 26 June 2021 by imported>Mic92 (remove 20.03 configuration (just upgrade...))

Podman can run rootless containers and be a drop-in replacement for Docker.

Install and configure podman with NixOS service configuration

{ pkgs, ... }:
{
  virtualisation = {
    podman = {
      enable = true;

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