As an FYI to anyone trying this, I ran into the following problems and solved them.
Port 53 (DNS) was already bound to systemd-resolved. This caused the Adguard container to fail.
https://hub.docker.com/r/adguard/adguardhome
From their documentation, do this. I added the commands I did below.
sudo mkdir /etc/systemd/resolved.conf.d
sudo touch /etc/systemd/resolved.conf.d/adguardhome.conf
sudo nano /etc/systemd/resolved.conf.d/adguardhome.conf
#Copy this in and save
[Resolve]
DNS=127.0.0.1
DNSStubListener=no
DHCP on the interface I was using on my VM was already bound to DHCP. To resolve this, set a static IP. I used the following.
sudo nano /etc/netplan/00-installer-config.yaml
#Overwrite with the following. Make sure if your adapter isn’'t labeled ens33, you change it appropriately.
network:
renderer: networkd
ethernets:
ens33:
addresses:
- 192.168.1.200/24
nameservers:
addresses: [192.168.1.1]
routes:
- to: default
via: 192.168.1.1
version: 2
As an FYI to anyone trying this, I ran into the following problems and solved them.
sudo mkdir /etc/systemd/resolved.conf.d sudo touch /etc/systemd/resolved.conf.d/adguardhome.conf sudo nano /etc/systemd/resolved.conf.d/adguardhome.conf #Copy this in and save [Resolve] DNS=127.0.0.1 DNSStubListener=no
#Overwrite with the following. Make sure if your adapter isn’'t labeled ens33, you change it appropriately. network: renderer: networkd ethernets: ens33: addresses: - 192.168.1.200/24 nameservers: addresses: [192.168.1.1] routes: - to: default via: 192.168.1.1 version: 2