Open rkfg opened 5 months ago
If you want to pipe docker exec
into a pager, then you probably want to add -T
:
docker compose exec -T db find / | less
If that doesn't work:
docker compose exec -T db find / </dev/null | less
The latter looks like a workaround that should not be needed.
-T
doesn't change anything for me but </dev/null
does (i.e. it works as expected with it)! It feels like compose and the pager fight for stdin which causes these skips.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still an issue in compose v2.29.7
This issue has been automatically marked as not stale anymore due to the recent activity.
Description
When running commands like
docker compose exec containername mysql... | less
you've got to press keys twice (or more) for them to take effect.Steps To Reproduce
docker compose exec db find / | less
(use any running container name instead of db)Compose Version
Docker Environment
Anything else?
Works fine if I run the same command with just
docker exec
and use an unscoped container name. This is a repost of issue #8428 which has been closed without any comments.