Skip to content

shimv2: support attachable binary I/O - #10020

Closed
fahedouch wants to merge 1 commit into
containerd:mainfrom
fahedouch:binary-io-writes-to-fifos
Closed

fahedouch wants to merge 1 commit into
containerd:mainfrom
fahedouch:binary-io-writes-to-fifos

Conversation

@fahedouch

Copy link
Copy Markdown
Member

nerdctl uses binary I/O to support detached mode, but this is not sufficient because it does not allow reattachment. This PR introduces a new I/O attachablebinary that allows detaching and reattaching of I/O managed by the containerd-shim

@fahedouch
fahedouch marked this pull request as draft March 29, 2024 15:50
@fahedouch
fahedouch force-pushed the binary-io-writes-to-fifos branch from 76fc465 to 8659051 Compare April 1, 2024 09:32
@fahedouch
fahedouch marked this pull request as ready for review April 1, 2024 09:33
@fahedouch
fahedouch force-pushed the binary-io-writes-to-fifos branch 2 times, most recently from c84d44b to c3ab348 Compare April 1, 2024 09:45
@fahedouch
fahedouch force-pushed the binary-io-writes-to-fifos branch from 2627516 to 7fcea19 Compare April 2, 2024 15:14
@fahedouch
fahedouch requested a review from AkihiroSuda April 2, 2024 19:44
@fahedouch
fahedouch force-pushed the binary-io-writes-to-fifos branch 2 times, most recently from a3da5f4 to b913e4c Compare April 7, 2024 21:26
@fuweid fuweid changed the title support attachable binary I/O shimv2: support attachable binary I/O Apr 19, 2024
@fahedouch
fahedouch force-pushed the binary-io-writes-to-fifos branch from 75509a2 to 8837e4f Compare April 21, 2024 22:03
@fahedouch
fahedouch requested a review from fuweid April 21, 2024 22:05
@fahedouch
fahedouch force-pushed the binary-io-writes-to-fifos branch from 90883dc to cd48cde Compare April 24, 2024 15:54
@fahedouch
fahedouch requested a review from fuweid April 24, 2024 15:54
@fahedouch
fahedouch force-pushed the binary-io-writes-to-fifos branch from cd48cde to 5f19f04 Compare April 24, 2024 22:09
@fahedouch

Copy link
Copy Markdown
Member Author

/retest

@cpuguy83

cpuguy83 commented May 1, 2024

Copy link
Copy Markdown
Member

Really not a fan of these runc specific options that really have nothing really to do with runc.
That said this seems fine to unblock an existing workflow.

It would also be extremely helpful to include an explanation of what this does and how its expected to be used in code and the commit.

@fahedouch
fahedouch force-pushed the binary-io-writes-to-fifos branch from 574c5b5 to 54d8d7c Compare April 22, 2025 09:17
@fahedouch
fahedouch force-pushed the binary-io-writes-to-fifos branch from 54d8d7c to cc55388 Compare April 22, 2025 09:21
@AkihiroSuda AkihiroSuda added this to the 2.1 milestone Apr 22, 2025
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Apr 22, 2025
@AkihiroSuda
AkihiroSuda requested a review from dmcgowan April 22, 2025 09:21
@fahedouch
fahedouch force-pushed the binary-io-writes-to-fifos branch from cc55388 to bf3c68c Compare April 22, 2025 10:19
This PR introduces binaryIO stdout FIFO and stderr FIFO used for capturing binary stdout and stderr streams. These FIFOs enable external tools or processes (e.g. nerdctl) to attach and read the output streams in real-time.

Signed-off-by: fahed dorgaa <[email protected]>
@fahedouch
fahedouch force-pushed the binary-io-writes-to-fifos branch from bf3c68c to f857d8d Compare April 23, 2025 13:34
@dmcgowan dmcgowan mentioned this pull request Apr 23, 2025
1 task done
@dmcgowan dmcgowan modified the milestones: 2.1, 2.2 Apr 24, 2025
@dmcgowan dmcgowan moved this from Needs Triage to Needs Reviewers in Pull Request Review Apr 24, 2025
@AkihiroSuda
AkihiroSuda requested a review from a team June 9, 2025 21:35
@dmcgowan

Copy link
Copy Markdown
Member

I don't think we need an API change to support this. Could the attachable fifo paths just be passed to the process as arguments? If not, they could still be passed as query parameters and pulled out of the URI. Considering this applies to a specific stdio scheme, passing through the URI seems like the cleaner solution.

@dmcgowan dmcgowan moved this from Needs Reviewers to Needs Update in Pull Request Review Oct 24, 2025
@dmcgowan dmcgowan moved this from Needs Update to Work In Progress in Pull Request Review Oct 24, 2025
@dmcgowan dmcgowan modified the milestones: 2.2, 2.3 Nov 6, 2025
@k8s-ci-robot

Copy link
Copy Markdown

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open 90 days with no activity. This PR will be closed in 7 days unless new comments are made or the stale label is removed.

@github-actions github-actions Bot added the Stale label Apr 11, 2026
@github-actions

Copy link
Copy Markdown

This PR was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions Bot closed this Apr 18, 2026
@github-project-automation github-project-automation Bot moved this from Work In Progress to Done in Pull Request Review Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

9 participants