fix rootless docker dns
This commit is contained in:
parent
92647f3853
commit
63ba76dc75
1 changed files with 10 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }: {
|
||||
{ config, pkgs, ... }: {
|
||||
environment.systemPackages = [ pkgs.docker-credential-helpers ];
|
||||
virtualisation = {
|
||||
docker = {
|
||||
|
@ -6,13 +6,21 @@
|
|||
package = pkgs.docker_26;
|
||||
daemon.settings = {
|
||||
data-root = "/persist/docker";
|
||||
dns = [
|
||||
# Quad9, without DoT
|
||||
"2620:fe::fe"
|
||||
"9.9.9.9"
|
||||
"2620:fe::9"
|
||||
"149.112.112.112"
|
||||
];
|
||||
};
|
||||
rootless = {
|
||||
enable = true;
|
||||
package = pkgs.docker_26;
|
||||
package = config.virtualisation.docker.package;
|
||||
setSocketVariable = true;
|
||||
daemon.settings = {
|
||||
data-root = "/persist/home/docker";
|
||||
dns = config.virtualisation.docker.daemon.settings.dns;
|
||||
};
|
||||
};
|
||||
storageDriver = "btrfs";
|
||||
|
|
Loading…
Reference in a new issue