lazydocker
lazydocker copied to clipboard
PostgreSQL container logs not displayed
Describe the bug Logs of a customized PostgreSQL container I use are not displayed
To Reproduce Steps to reproduce the behavior:
- docker run --name ehrdb -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -d -p 5432:5432 rippleosi/ethercis-database-docker
- start lazydocker as container
- check Logs of ehrdb container - they are empy
Expected behaviour Expected to see same logs that I get from following command
> docker container logs ehrdb
# example output
2019-09-11 06:27:48.178 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2019-09-11 06:27:48.178 UTC [1] LOG: listening on IPv6 address "::", port 5432
2019-09-11 06:27:48.180 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2019-09-11 06:27:48.191 UTC [18] LOG: database system was shut down at 2018-10-24 08:54:17 UTC
2019-09-11 06:27:48.193 UTC [1] LOG: database system is ready to accept connections
Screenshots

Desktop (please complete the following information):
- OS: Linux (Deepin 15.11 - kernel 5.0)
- Lazydocker Version v0.7.4
Additional context I Also tried starting ehrdb container from a customcommand for images from inside lazydocker, same behavior as described above.
Does this happen with other contains too?
Running lazydocker in Docker container won't give you logs or CPU usage. Known bug.
@dawidd6 Is this just impossible due to files outside of the docker container?
Because if so we could better just remove this logs tab from the docker container.
Honestly I have no idea why it does not work in Docker. We have docker binary in image and yet it refuses to show logs, but other stuff is working.
Ow i see this is indeed wired,
when i run docker:dind with the docker sock mounted it shows the logs just fine.
docker run \
-v /var/run/docker.sock:/var/run/docker.sock \
-it --rm docker:dind sh
/ # docker logs redis
Yep, docker will show logs, but lazydocker not. Guess it becomes lazier in Docker.
Running lazydocker in Docker container won't give you logs or CPU usage. Known bug.
confirm, running "normally" installed lazydocker displays logs as expected

Added a notice about this: https://github.com/jesseduffield/lazydocker/commit/ef1b2b57b0e17b1635421cc40dfa54f2acf788e6
Any news about why this happens?
Any progress on this front? This is sort of a blocker for docker installations.