Community discussions

MikroTik App
 
DyadyaGenya
Member Candidate
Member Candidate
Topic Author
Posts: 227
Joined: Mon May 08, 2023 10:34 pm

Containers are not installed (Adguard and Pi-Hole)

Wed Jan 22, 2025 12:54 am

Hi all. I had an Adguard container running on my RB4011iGS+5HacQ2HnD. I installed it a long time ago, set it up and forgot about it. I needed to make an amendment, but forgot the password. Since I had already reinstalled the container several times, I simply deleted it this time. I tried to install it again, but it always gives an error. I tried to install Pi-Hole, and the same story. There seems to be enough space (422.9 MiB), as well as memory (free memory ~914.6 MiB). Firmware version 7.10.2.
I had the commands saved for installation via the command line. I double-checked them. Everything seems to be as in the documentation. It doesn't work through WinBox either.
Here are the installation commands, just in case:
/container config set registry-ur=https://registry-1.docker.io
/container config set ram-high=100M
/container config set tmpdir=/tmp_docker
/container/envs/add name=envs_pihole key=TZ value=Europe/Kyiv
/container/envs/add name=envs_pihole key=WEBPASSWORD value="1"
/container/envs/add name=envs_pihole key=DNSMASQ_USER value="root"
/container/mounts/add name=pihole_etc src=/pihole/etc dst=/etc/pihole
/container/mounts/add name=dnsmasq_pihole src=/etc-dnsmasq.d dst=/etc/dnsmasq.d
/container/add remote-image=pihole/pihole:latest interface=virteth1 root-dir=/pihole mounts=pihole_etc,dnsmasq_pihole envlist=envs_pihole
or... I hope it’s clear why there will be fewer commands for Adguard, therefore:
/container mounts add name=adguard_etc src=/adguard/etc dst=/etc/adguard
/container add remote-image=adguard/adguardhome:latest interface=virteth1 root-dir=adguard mounts=adguard_etc
I even tried to explicitly specify the image: remote-image=adguard/adguardhome:latest-arm64 OR remote-image=adguard/adguardhome::v0.108.0-b.62
 
DyadyaGenya
Member Candidate
Member Candidate
Topic Author
Posts: 227
Joined: Mon May 08, 2023 10:34 pm

Re: Containers are not installed (Adguard and Pi-Hole)

Wed Jan 22, 2025 1:54 am

I also tried downloading the image to my PC, uploading it to Mikrotik and installing it from there. It seems like it installs, starts, and then stops. I start forcibly, it shows that it starts and then stops again.
 
User avatar
tangent
Forum Guru
Forum Guru
Posts: 1677
Joined: Thu Jul 01, 2021 3:15 pm
Contact:

Re: Containers are not installed (Adguard and Pi-Hole)

Wed Jan 22, 2025 7:11 am

There is no setting "registry-ur".
 
holvoetn
Forum Guru
Forum Guru
Posts: 6999
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Containers are not installed (Adguard and Pi-Hole)

Wed Jan 22, 2025 8:53 am

There is no setting "registry-ur".
There is when it auto-completes to "registry-url"

[xyz@RB5009] > container/config set <TAB>
layer-dir password ram-high registry-url tmpdir username
 
DyadyaGenya
Member Candidate
Member Candidate
Topic Author
Posts: 227
Joined: Mon May 08, 2023 10:34 pm

Re: Containers are not installed (Adguard and Pi-Hole)  [SOLVED]

Wed Jan 22, 2025 11:59 am

I solved the problem. I added DNS 8.8.8.8 and everything worked. I have another problem now. How to add your own blocking list. It is clear that you can write it line by line in filters. But I wanted to add a list and update it periodically. Moreover, it is faster to disable/enable the list.