Read logs from Docker image
rgmvisser
PROOP

a year ago

Hi!

I was wondering if it's possible to read the logs from a docker image somehow?

My Elastic service is failing to deploy when I try to attach a volume to it. I am not sure why it is failing, so would love to check the logs:

ERROR: Elasticsearch did not exit normally - check the logs at /usr/share/elasticsearch/logs/docker-cluster.log

Cheers,

Ruud

Solved

2 Replies

david
EMPLOYEE

a year ago

Hi Ruud --

Unfortunately Railway provides no way to ssh into a container (yet).

Thus you would need to configure the software to print the log to stdout / stderr or configure it to place that file in a volume where you could then attach the volume to a filebrowser service to read the log file from the volume.

Hope that helps,

David


Status changed to Awaiting User Response Railway over 1 year ago


rgmvisser
PROOP

a year ago

That helps, thanks!


Status changed to Awaiting Railway Response Railway over 1 year ago


Status changed to Solved david over 1 year ago


Loading...