docker: enable rootless

This commit is contained in:
Rouven Seifert 2024-04-11 11:52:03 +02:00
parent 1b1a02caa0
commit 2297f6506d
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -2,8 +2,13 @@
{ {
virtualisation = { virtualisation = {
docker = { docker = {
enable = true; rootless = {
extraOptions = "--iptables=false"; enable = true;
setSocketVariable = true;
daemon.settings = {
iptables = false;
};
};
}; };
libvirtd = { libvirtd = {
enable = true; enable = true;
@ -18,7 +23,7 @@
spiceUSBRedirection.enable = true; spiceUSBRedirection.enable = true;
}; };
# allow libvirts internal network stuff # allow libvirts internal network stuff
networking.firewall.trustedInterfaces = [ "virbr0" "br0" "docker0" ]; networking.firewall.trustedInterfaces = [ "virbr0" ];
programs.virt-manager.enable = true; programs.virt-manager.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
virt-viewer virt-viewer