Comments (5)
We have introduced PipedStdIo
to help the situation, https://github.com/containerd/rust-extensions/blob/main/crates/runc/src/io.rs#L250.
Will it help here?
from rust-extensions.
We have introduced
PipedStdIo
to help the situation, https://github.com/containerd/rust-extensions/blob/main/crates/runc/src/io.rs#L250. Will it help here?
PipedStdIo
helps. My point is in order to override it, every command options need a pub io: Option<Arc<dyn Io>>
field member.
from rust-extensions.
As we have provided both InheritedStdIo
and PipedStdIo
, it would be reasonable to make the most popular one as the default. And it's easy to override it when the default value doesn't work.
from rust-extensions.
As you see in #37 (comment), stdout and stderr are empty in the returned error message.
2022-02-27T22:25:36.2249644Z container_test.go:716: expected error "not found" but received "Others(\"Other: unknown error after kill: runc command failed: status=exit status: 1, stdout=\\\"\\\", stderr=\\\"\\\"\"): unknown"
The reason may be that they are deliverd to shim stdio and redirected to /dev/null
.
from rust-extensions.
Inherited StdIo
will pass the stdout/stderr to parent process stdio.Piped StdIo
will pass them to parent process itself.
If first one is by default, we need add a io member in every command optios so as to deliver output to shim process itself instead of its stdio.
from rust-extensions.
Related Issues (20)
- Proposal: remove sync code HOT 4
- How to integrate my own host runtime with containerd using this repo? HOT 1
- Bug: OOMKilled event not reported to containerd
- BugReport: Shim process cpu usage overheaded HOT 2
- Nightly CI is failing integration tests HOT 12
- Windows connect test flaking with all pipe instances are busy HOT 3
- Help using gRPC containerd-client, "namespace is required: failed precondition" HOT 1
- could not find `Config` in `runc` HOT 5
- Request for a new release of `containerd-shim` crate HOT 1
- Failed to build
- `stats` doesn't work on cgroup v2 HOT 1
- Bug: Cannot reproduce gRPC client container example
- Problems running shim exampe `skeleton` HOT 1
- Support cancel_rx in ttrpc context HOT 1
- Proposal: Support content fetch
- Support client create on Windows HOT 3
- ContainerAttach integration tests flaking HOT 1
- Bug: pod restarted after containerd restarted when container IO is huge HOT 1
- Could you release a new version of `containerd_shim`? HOT 5
- Is there a plan for for registering and reporting cgroup OOM events in Rust shim? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-extensions.