Podman: Difference between revisions
imported>Cyounkins Replace "unstable" with "20.09", remove unneeded reference to the PR |
imported>Mic92 remove 20.03 configuration (just upgrade...) |
||
Line 1: | Line 1: | ||
Podman can run rootless containers and be a drop-in replacement for Docker. | Podman can run rootless containers and be a drop-in replacement for Docker. | ||
== Install and configure podman with NixOS service configuration | == Install and configure podman with NixOS service configuration == | ||
<syntaxHighlight lang="nix"> | <syntaxHighlight lang="nix"> | ||
Line 13: | Line 13: | ||
dockerCompat = true; | dockerCompat = true; | ||
}; | }; | ||
}; | }; | ||
} | } | ||
</syntaxHighlight> | </syntaxHighlight> |
Revision as of 07:05, 26 June 2021
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;
};
};
}