Hi guy, it may sound silly, but I really can’t find a solution for what I need.
I’m using a RPi (arm32) and I’ve deployed everything using docker.
In case of failure or malfunction, I need to log and issue docker commands like:
docker ps -a
docker compose logs -n 100
I have some employees that are diagnosing those problems in the field and must check the docker logs for maintenance. For security reasons, I can’t give them the user or password for bash.
I know that there are a lot of solutions to view logs like loki, prometheus, syslog-ng, and others. All of them are awesome, but I don’t want to deploy them in a lazy hardware just to get some log info. I can’t find a light and simple solution as well.
Can I redirect my docker logs to a server? As an example, like a simple nginx server?
docker run --name=nginx -d -v /var/lib/docker/containers/<id>/<id>-json.log:/var/www -p 5000:80 nginx
I can’t perform as I presented since logs have access permissions and It doesn’t work like that. It is just to give an insight and request for some help.