Pihole + docker on TurrisOS 6.x

Has anyone played with this configuration?
If so, can someone share the knowledge, step by step?

Why are you not trying to run it in a Linux container instead?

I have Pihole running in a Linux Ubuntu 20.04 container and it works flawlessly.

Can you link a guide?

Well not a guide, but rather just the normal guide to use.

Do you know how to setup a Linux container (LXC) on you Turris Omnia? Do PLEASE put a mSATA drive in your Turris Omnia and do NOT use the eMMC. I use a Samsung SSD 860 EVO mSATA 1TB It works without any problems.

Manual putting mSATA ssd: Turris Omnia: How to connect an mSATA disk - YouTube

Linux container manual: Linux containers [Turris wiki]
Pihole manual: How to Install Pi-Hole on Ubuntu (Beginner’s Guide) – RaspberryTips

REMEMBER: Point the Linux container directory to the right directory. In my case is like this. So it is pointing to my mSATA mount

/etc/lxc/lxc.conf:

lxc.lxcpath = /mnt/LXC

For the auto-start of the container after for example a reboot.

/etc/config/lxc-auto

config container
	option name K-Router-LXC
	option timeout 300
root@K-Router:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/mmcblk0p1            7.3G    315.9M      6.8G   4% /
devtmpfs                512.0K         0    512.0K   0% /dev
tmpfs                  1008.1M      2.1M   1005.9M   0% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda2               910.0G    144.3G    764.1G  16% /mnt/LXC
/dev/sda1                 4.0G      3.4M      4.0G   0% /mnt/monitoring

Yes, I have an mSATA SSD.
Of course, I once put a Pi-hole on the LXC, but at the moment I don’t own one. As TurrisOS 6.x supports docker, I wanted to try this method.
I found a guide:

Unfortunately, I’m stuck on this:

root@turris:~# pwd
/root

root@turris:~# ls -al
drwxr-xr-x    1 root     root           114 Feb  6 19:36 .
drwxr-xr-x    1 root     root           146 Feb  1 16:24 ..
drwx------    1 root     root             4 Nov 11 23:55 .cache
drwx------    1 root     root            12 Jan 21 22:40 .config
drwx------    1 root     root            10 Nov 11 23:55 .local
drwx------    1 root     root            30 Nov 13 11:36 .ssh
-rw-r--r--    1 root     root           254 Feb  4 23:38 .wget-hsts
-rw-r--r--    1 root     root           987 Feb  6 19:36 docker-compose.yml
drwxr-xr-x    1 root     root           126 Feb  6 19:32 pihole

root@turris:~# docker-compose up -d pihole
Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/
Creating network "root_internal" with the default driver
ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule:  (iptables failed: iptables --wait -t nat -I DOCKER -i br-8880e85ebb73 -j RETURN: iptables: No chain/target/match by that name.
 (exit status 1))

Anyone have any advice?

Restart docker and working:

root@turris:~# /etc/init.d/dockerd restart
root@turris:~# docker-compose up -d pihole
Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/
Creating network "root_internal" with the default driver
Creating network "lan" with driver "macvlan"
Pulling pihole (pihole/pihole:2021.09)...
2021.09: Pulling from pihole/pihole
5f46b20dcee3: Pull complete
0fc08ea2cc1b: Pull complete
1efc5911b4dd: Pull complete
c54f511bf874: Pull complete
e133dc5f804c: Pull complete
c3f9bffcbe07: Pull complete
ac287de2dccb: Pull complete
1864c859b776: Pull complete
Digest: sha256:42837bd859b91b5584e9df185a59b16fda2f04109d68f050889a58274ff27004
Status: Downloaded newer image for pihole/pihole:2021.09
Creating pihole ... done

As far i see docker runs meanwhile directly on OpenWRT.

I search a working Docker-compose fiele for that configuration.
I assume that some updates are the cause why.

not work.