Community discussions

MikroTik App
 
ygrecki
just joined
Topic Author
Posts: 14
Joined: Sun Oct 10, 2010 2:38 am

Portainer or Yacht on MT /Container

Wed Mar 06, 2024 5:41 pm

Hi
Is possible to install Portainer or Yacht in /Container on MT? It uses docker.socks like volume (-v /var/run/docker.sock:/var/run/docker.sock).
 
User avatar
baragoon
Member
Member
Posts: 315
Joined: Thu Jan 05, 2017 10:38 am
Location: Kyiv, UA
Contact:

Re: Portainer or Yacht on MT /Container

Wed Mar 06, 2024 5:44 pm

iirc Mikrotik containers are not docker based
 
ygrecki
just joined
Topic Author
Posts: 14
Joined: Sun Oct 10, 2010 2:38 am

Re: Portainer or Yacht on MT /Container

Wed Mar 06, 2024 5:54 pm

Is there any monitoring tool for Container in MT like Portainer/Yacht? (not SNMP)
 
optio
Long time Member
Long time Member
Posts: 694
Joined: Mon Dec 26, 2022 2:57 pm

Re: Portainer or Yacht on MT /Container

Wed Mar 06, 2024 7:29 pm

You can create scheduled script that checks if container is running or use external monitoring software that will perform that over ROS API.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3602
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Portainer or Yacht on MT /Container

Wed Mar 06, 2024 9:32 pm

The Yacht looks interesting. It does all things that RouterOS doesn't with /container without all larger scale pod stuff...

I'd imagine it be possible to "port" yacht for docking on RouterOS. It is open source. Most of the interaction with docker daemon only happens in a few places in the python. So THEORITICALLY, the Docker's API (that happen via docker.sock) COULD be replace using IP to Mikrotik's API, with some work... 80% of the code looks to be UI at managing the configs and their "templating", only 20% is talking to docker.

While what images are loaded etc is possible in Mikrotik API. Getting the CPU and memory for a particular container is trickier. RouterOS does NOT have a corresponding API for that part. I suppose some theoretically "Mikrotik Yacht" could read "/proc/stat" via mount or shell from yacht backend, but that may not be full-proof since I'm not sure all image mount a /proc.

Anyway it ain't just needing a docker.sock to fix the yacht.
 
optio
Long time Member
Long time Member
Posts: 694
Joined: Mon Dec 26, 2022 2:57 pm

Re: Portainer or Yacht on MT /Container

Wed Mar 06, 2024 9:44 pm

If resource monitoring is needed then ROS will need to expose per container resource usage otherwise it can be achieved only with custom container image with some resource monitoring service installed along with actual service.

Who is online

Users browsing this forum: No registered users and 3 guests