How to access the already running process in the container programmatically?
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
Using, the `WSL.Containers` Nuget in C#, I can start / stop containers normally, however through the API I seem to only be able to launch processes in there manually. How do I get the already running process and its logs, stdin/stdout/stderr, etc from a container?
The examples all launch a container and then manually call a process inside, which is not something that the containerthat I am intersted in is doing, which alsready runs its process via `CMD ["someapp"]` at the end of the Dockerfile.
Contributor guide
Research direction
Start with the WSL.Containers NuGet API and the container process examples mentioned in the issue. Compare those examples with the Dockerfile CMD that starts the existing process, and determine whether its logs and stdin/stdout/stderr are exposed; done means documenting or demonstrating the supported access path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, docker
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100