Set resolv.conf file manually for uptime-kuma container due to a bug
This commit is contained in:
		
					parent
					
						
							
								eba7c018ed
							
						
					
				
			
			
				commit
				
					
						4c918ad074
					
				
			
		
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
					@ -10,6 +10,13 @@
 | 
				
			||||||
        enable = true;
 | 
					        enable = true;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      # The resolv.conf file doesn't seem to be copied from host after the first start of the container after reboot
 | 
				
			||||||
 | 
					      # See: https://nixos.wiki/wiki/NixOS_Containers#Troubleshooting
 | 
				
			||||||
 | 
					      environment.etc."resolv.conf".text = ''
 | 
				
			||||||
 | 
					        nameserver 172.16.0.2
 | 
				
			||||||
 | 
					        nameserver 172.16.0.3
 | 
				
			||||||
 | 
					      '';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      system.stateVersion = "23.05";
 | 
					      system.stateVersion = "23.05";
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue