john30 / ebusd

daemon for communication with eBUS heating systems
GNU General Public License v3.0
560 stars 130 forks source link

Running ebusd in docker container without -f #249

Closed peti69 closed 5 years ago

peti69 commented 5 years ago

Hi,

I have deployed ebusd in docker (by means of portainer, no console docker access available). When using the option -f everything is fine but I do not get a log file on a volume (as documented). But if I start ebusd without -f docker/portainer gets confused somehow. Looks like that docker/portainer is not able to monitor ebusd properly if it is started as daemon.

Kind regards, Peter

john30 commented 5 years ago

you can't start it without "-f" in docker, thats why it is hard coded in the Dockerfile. the log is usually retrieved from the docker daemon instead of the logfile (therefor "-f"). for dockerd, you can use e.g. "docker logs ebusd". So you'll need to find out, how portainer does that

peti69 commented 5 years ago

portainer does a "docker logs ebusd" and presents that on the GUI. That it, I have access to ebusd output,. But I would rather prefer to have it persistent on a volume for later investigation. Seems that there is no standard way (best practices) for managing application log files in conjunction with docker.

john30 commented 5 years ago

afaik you can make portainer use a different logging system than the default. check the documentation

peti69 commented 5 years ago

It is not possible for me to change the portainer setup. I only can use it.

john30 commented 5 years ago

I tried it and you just have to change the logging when adding the container

peti69 commented 5 years ago

What do you mean?

TheEPIX commented 5 years ago

It's NOT possible to change a existing docker-image. ("Container" register) It's only when you make the setup in the syno-GUI for the docker (in the "Image" register): you klick on the "Start" Button and in the "environment"-register you filnd at the bottom a field where you can define the paramters for the docker-start..

Dont think too much - just try it ;-)