Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

Unable to get progress logs from a docker container running in detached mode #164

@nikhilo

Description

@nikhilo

I'm trying to run riot as a Docker container. Since I'm planning to run live replication on a pretty huge DB, I would like to get the logs from riot into a logging solution such as ELK.
When I run the container in foreground with docker run -it, I'm able to see the continuous progress in stdout.
However, when I run the container with docker run -d, I'm unable to get continuous progress in the logs.
I tried using several different parameter combinations,

--progress log
--progress log --info
--log-file /var/log/riot.log
--progress log --info --log-file /var/log/riot.log

No updates show up with I run

docker logs --follow riot
OR
tail -f /var/log/riot.log (in case of --log-file)

Only when I stop the container, the log line shows up,

Scanning/Listening 100% [=============] 18551/18551 (0:01:25 / 0:00:00) 218.2/s

How can I collect the logs from riot docker container and ship them to a logging solution ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions