mirror of
https://github.com/games-on-whales/LXC2Docker.git
synced 2026-10-16 05:12:04 +00:00
[PR #9] [MERGED] [codex] Harden Portainer exec streaming #11
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#11
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/9
Author: @JBailes
Created: 4/17/2026
Status: ✅ Merged
Merged: 4/17/2026
Merged by: @JBailes
Base:
docker-lxc-daemon← Head:aimee/session/portainer-exec-fix📝 Commits (1)
cf73265Harden Portainer exec streaming📊 Changes
2 files changed (+78 additions, -35 deletions)
View changed files
📝
internal/api/exec.go(+77 -35)📝
internal/api/types.go(+1 -0)📄 Description
Summary
/exec/{id}/startno longer hard-fails when the response path does not exposehttp.HijackerWorkingDirthrough exec invocation so terminal sessions and command runs start in the requested directoryWhy
PR #8 was already merged before the exec-streaming follow-up landed. This PR isolates the remaining exec fix on top of the merged Portainer compatibility work.
Validation
GOCACHE=/tmp/go-build-cache go test ./.../logsonroot@192.168.1.253against the running Portainer container through a transient daemon socket/execonroot@192.168.1.253against a temporarynginx:alpinecontainer, includingWorkingDir=/tmp, framed output, andExitCode: 0Notes
127seen against the Portainer container was due to that image not shipping/bin/sh, not a stream-plumbing failure🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.