You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a current compose project, docker compose top reports the following:
$ docker compose topmyproject-converters-1UID PID PPID C STIME TTY TIME CMDroot 336052 335954 0 11:18 ? 00:00:01 ruby bin/servermyproject-redis-ephemeral-1UID PID PPID C STIME TTY TIME CMDsystemd+ 336001 335887 0 11:18 ? 00:00:05 valkey-server *:6379myproject-redis-persisted-1UID PID PPID C STIME TTY TIME CMDroot 336038 335921 0 11:18 ? 00:00:08 valkey-server *:6379myproject-sidekiq-default-1UID PID PPID C STIME TTY TIME CMDappuser 338516 338496 19 12:00 ? 00:00:09 sidekiq 7.3.6 default [0 of 3 busy]myproject-watchtower-1UID PID PPID C STIME TTY TIME CMDroot 335931 335850 0 11:18 ? 00:00:00 /watchtower --label-enable --include-stopped --revive-stopped --cleanup --rolling-restart --stop-timeout=80s --http-api-updatemyproject-web-1UID PID PPID C STIME TTY TIME CMDappuser 338619 338597 0 12:00 ? 00:00:00 /bin/bash -e /rails/bin/docker-entrypoint.sh rails serverappuser 338653 338619 0 12:00 ? 00:00:00 flock -x /rails/data/migration-check.lock bundle exec rake db:prepareappuser 338665 338653 46 12:00 ? 00:00:01 /usr/local/bundle/ruby/3.2.0/bin/rake db:prepare
I find this a bit wasteful, in regards to the screen estate. The output is also hard to grasp because the columns are not aligned across the various services.
Would you accept a PR to format the output to something like the following?
compose top uses text/tabwriter which should manage alignment
columns are those reported by docker engine ContainerTop API, I agree we miss one to report the service process belongs to. Happy to review a PR if you can prepare one
Can I assume that ContainerTop returns always returns the columns in the same order, or shall I be defensive and ensure ordering of the container.Titles when running compose top?
dmke
linked a pull request
Dec 16, 2024
that will
close
this issue
Description
In a current compose project,
docker compose top
reports the following:I find this a bit wasteful, in regards to the screen estate. The output is also hard to grasp because the columns are not aligned across the various services.
Would you accept a PR to format the output to something like the following?
The text was updated successfully, but these errors were encountered: