mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/virtualisation.oci-containers: Use podman as the default backend
This has a number of benefits such as that applying service limits will actually work since there isn't a layer of indirection (the Docker daemon) between the systemd service and the container runtime.
This commit is contained in:
parent
986fc6057c
commit
46241e156c
3 changed files with 17 additions and 5 deletions
|
@ -338,11 +338,7 @@ in {
|
|||
|
||||
backend = mkOption {
|
||||
type = types.enum [ "podman" "docker" ];
|
||||
default =
|
||||
# TODO: Once https://github.com/NixOS/nixpkgs/issues/77925 is resolved default to podman
|
||||
# if versionAtLeast config.system.stateVersion "20.09" then "podman"
|
||||
# else "docker";
|
||||
"docker";
|
||||
default = if versionAtLeast config.system.stateVersion "22.05" then "podman" else "docker";
|
||||
description = "The underlying Docker implementation to use.";
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue