Hello,
I need to install an Ubuntu container on RB5009, but I have an issue. Everything downloads and saves, but when I try to start it, it starts and then stops after 2-3 seconds without any information in the logs.
Generally, I need to run this.: this unifi-cam-proxy. comWhy do you need Ubuntu container on RB5009????
Yes, I saw it and tried it, but I don't know how to add the .pem file to the container because it stops after running.)Containers are not virtual machines. You don't need to run the whole OS there. You only run specific apps with containers.
In your case they have a docker image: https://unifi-cam-proxy.com/#docker
no need for any ubuntu
That might be a problem, normally you can use a mount to get that on Mikrotik container. But based on quick look at compose YAML/Dockerfile, it uses a file mapping (not a path) and the .PEM lives in the root so you can't just mount that.Yes, I saw it and tried it, but I don't know how to add the .pem file to the container because it stops after running.)Containers are not virtual machines. You don't need to run the whole OS there. You only run specific apps with containers.
In your case they have a docker image: https://unifi-cam-proxy.com/#docker
no need for any ubuntu
version: "3.5"
services:
proxy-1:
restart: unless-stopped
image: keshavdv/unifi-cam-proxy
volumes:
- "./client.pem:/client.pem"
command: unifi-cam-proxy --host {NVR IP} --mac 'AA:BB:CC:00:11:22' --cert /client.pem --token {Adoption token} rtsp -s rtsp://192.168.201.15:8554/cam'
proxy-2:
restart: unless-stopped
image: keshavdv/unifi-cam-proxy
volumes:
- "./client.pem:/client.pem"
command: unifi-cam-proxy --host {NVR IP} --mac 'AA:BB:CC:33:44:55' --cert /client.pem --token {Adoption token} rtsp -s rtsp://192.168.201.15:8554/cam'
Containers kinda designed to run one "EXE", so unifi-cam-proxy follows that model. So you can download source, modifying it, and re-build the container locally using Docker Build. There are techniques like using http://supervisord.org in Dockertfile/enterpoint.sh to have it launch multiple processes...Is there a way to run multiple cameras on a single container?