Skip to content

feat(docker): add container logs modal and stats columns#4807

Open
ajnart wants to merge 17 commits intodevfrom
feat/docker-logs
Open

feat(docker): add container logs modal and stats columns#4807
ajnart wants to merge 17 commits intodevfrom
feat/docker-logs

Conversation

@ajnart
Copy link
Member

@ajnart ajnart commented Jan 6, 2026

Homarr

Summary

Adds Docker container log viewing from the management Docker table via a dedicated logs modal, and exposes CPU/memory stats columns (hidden by default).

Changes

  • Add docker.logs tRPC query and server-side log decoding (Docker multiplexed format).
  • Add DockerLogsModal (Homarr modal system) that polls logs every second and scrolls to bottom on first load.
  • Add "View logs" action in the management Docker table.
  • Add CPU% + Memory columns (hidden by default) to the management Docker table, leverage the new data passed in the main docker integration.
  • Bonus: Fix a crash on macos

Screenshots

  • Toggles for CPU or Memory
CleanShot 2026-01-06 at 18 59 37@2x
  • Docker table action bar
image
  • Docker logs modal
    CleanShot 2026-01-06 at 21 15 06

Checklist

  • Builds without warnings or errors (pnpm build, autofix with pnpm format:fix)
  • Pull request targets dev branch
  • Commits follow the conventional commits guideline
  • No shorthand variable names are used (eg. x, y, i or any abbrevation)
  • Documentation is up to date. Create a pull request here.

@ajnart ajnart requested a review from a team as a code owner January 6, 2026 17:57
@deepsource-io
Copy link
Contributor

deepsource-io bot commented Jan 6, 2026

Here's the code health analysis summary for commits 70f3ab2..fb3da7e. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copilot AI and others added 8 commits January 6, 2026 19:54
…de, simplify column visibility, and share utility functions

Co-authored-by: ajnart <49837342+ajnart@users.noreply.github.com>
…olling

Co-authored-by: ajnart <49837342+ajnart@users.noreply.github.com>
Co-authored-by: ajnart <49837342+ajnart@users.noreply.github.com>
…cate initial logs

Co-authored-by: ajnart <49837342+ajnart@users.noreply.github.com>
… for header size

Co-authored-by: ajnart <49837342+ajnart@users.noreply.github.com>
… memory management

Co-authored-by: ajnart <49837342+ajnart@users.noreply.github.com>
…ed Docker streams

Co-authored-by: ajnart <49837342+ajnart@users.noreply.github.com>
@ajnart ajnart requested review from a team and Meierschlumpf January 6, 2026 20:23
@ajnart ajnart enabled auto-merge (squash) January 15, 2026 20:19
@Meierschlumpf
Copy link
Member

Please fix CI

Also I've tried your changes out and have the following feedback:

  1. It's pretty bad UX when you want to view the logs of a container that is for example on the bottom of your container list
  2. The logs don't really follow, at least when watching the logs from my running Homarr instance it scrolls down a few lines, however not to the bottom. As I already said I would suggest that we reuse the same library as we used for /manage/tools/logs which works very nicely and can also show color in the logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants