Community discussions

MikroTik App
 
B101HH
just joined
Topic Author
Posts: 2
Joined: Sun Aug 20, 2023 3:18 pm

Containers on hAP ax2

Sun Aug 20, 2023 3:50 pm

Hello!
I've got tired of trying to mount containers on my hAP ax2.
Hey, mikrotik developers, if you knew that it would be possible to mount containers on this device, was it a great deal to make a usb-port on it or add some more drive space? It costs almost nothing.
I installed ROSE and gave an access to my local SMB share.
/disk
add type=smb smb-address=192.168.186.16 smb-share=RouterOS
Then I made folders on it.
I made an docker image with arm64 architecture on my laptop. Also I made a RAM folder on mikrotik and brought docker image there.
Mounts:
/container/mounts/add name=etc_pihole src=smb-192-168-186-16-RouterOS/pihole/etc dst=/etc/pihole
/container/mounts/add name=dnsmasq_pihole src=smb-192-168-186-16-RouterOS/pihole/etc-dnsmasq.d dst=/etc/dnsmasq.d
Container:
/container/add file=Ram350/pihole.tar interface=veth1 envlist=pihole_envs root-dir=smb-192-168-186-16-RouterOS/pihole/root mounts=dnsmasq_pihole,etc_pihole hostname=PiHole
As a result:
error: failed to extract
was unable to import, container c8e91f57-12bb-4b47-b993-c566c9345d24
What am I doing wrong?

PS: I see that it makes folder "bin" in "root" folder, bin has some files. Also it has file "container" in root folder. That's all.
PPS. I apologize for mistakes. I'm not a native english speaker.
 
B101HH
just joined
Topic Author
Posts: 2
Joined: Sun Aug 20, 2023 3:18 pm

Re: Containers on hAP ax2

Thu Aug 24, 2023 5:53 pm

I solved this problem.
All I needed to do is to use nfs-share instead of smb-share. After that system imports a container without any problems.
But I didn't get a result because I was not able to start the container.
So I decided to deploy adGuard container using this manual viewtopic.php?t=193727#p1009068 post 45.
I got the container running. But there also was a problem: when I was trying to get to web panel of adguard there was no result. The reason was that there was no IP address in veth. I updated winbox, after that I stopped the container, enter IP address, run the container.
After that It works well.
Last edited by tangent on Thu Aug 24, 2023 6:39 pm, edited 1 time in total.
Reason: Typo fix

Who is online

Users browsing this forum: Seekport [Bot] and 3 guests