Podman: Difference between revisions
imported>Mic92 remove 20.03 configuration (just upgrade...) |
imported>Mausch Link to nix-shell gist |
||
Line 16: | Line 16: | ||
} | } | ||
</syntaxHighlight> | </syntaxHighlight> | ||
== Use Podman within nix-shell == | |||
https://gist.github.com/adisbladis/187204cb772800489ee3dac4acdd9947 |
Revision as of 11:35, 28 August 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;
};
};
}
Use Podman within nix-shell
https://gist.github.com/adisbladis/187204cb772800489ee3dac4acdd9947