mirror of
https://github.com/games-on-whales/LXC2Docker.git
synced 2026-10-16 05:12:04 +00:00
[PR #10] [MERGED] Improve Portainer logs and attach behavior #12
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/LXC2Docker#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/games-on-whales/LXC2Docker/pull/10
Author: @JBailes
Created: 4/17/2026
Status: ✅ Merged
Merged: 4/17/2026
Merged by: @JBailes
Base:
docker-lxc-daemon← Head:aimee/session/portainer-logs-attach📝 Commits (10+)
f6dadc7Honor Portainer log tail requests92aa3a7Relax Portainer attach streaming requirements8918ccaStream Portainer push failuresc273b3cImprove Portainer image search129c793Harden Portainer image pull flows31d7b14Tighten Portainer log replay handling52bea78Refine Portainer image search results66da5f5Support richer Portainer log queries98dbc04Fix Portainer archive HEAD responses796d0a5Make Portainer attach fallback usable📊 Changes
14 files changed (+3280 additions, -274 deletions)
View changed files
📝
internal/api/build.go(+313 -19)📝
internal/api/containers.go(+837 -60)📝
internal/api/containers_extra.go(+172 -7)📝
internal/api/exec.go(+92 -5)📝
internal/api/images.go(+434 -38)➕
internal/api/list_filters.go(+210 -0)➕
internal/api/portainer_ops.go(+411 -0)📝
internal/api/router.go(+44 -8)📝
internal/api/system.go(+267 -33)📝
internal/api/types.go(+276 -65)📝
internal/api/volumes.go(+32 -1)📝
internal/lxc/manager.go(+30 -9)📝
internal/oci/pull.go(+49 -11)📝
internal/store/store.go(+113 -18)📄 Description
Summary
logs?tail=so Portainer log views can request just the most recent lines instead of replaying the full console log every timeattachstreaming requirements by falling back to a non-hijack raw stream whenhttp.Hijackeris unavailableWhy
PR #9 landed the core exec-streaming fix, but two small Portainer-facing follow-ups were still sitting on that merged branch. This PR isolates the remaining log-tail and attach-streaming hardening on top of the latest
docker-lxc-daemon.Validation
GOCACHE=/tmp/go-build-cache go test ./...logs?tail=2andlogs?tail=5onroot@192.168.1.253against the running Portainer container through a transient daemon socket, with materially different framed response sizesNotes
attachfollows the same fallback pattern already validated for/execattachitself on the host🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.