feature request: stop an exec_run
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 1.7k
- Avg merge
- 13d 8h
- Merged PRs (30d)
- 2
Description
I have a use case where I need to stop an exec_run after starting it over an api. I'm implementing something similar to a healthcheck, but externally, and I need to timeout the healthcheck.
Workarounds would be to use /usr/bin/timeout as part of the exec command or just use /usr/bin/docker exec and kill the process, but it would also be nice to have a way to stop an exec that was started from the api.
edit: reading over https://github.com/moby/moby/issues/9098 ...I need to look and see if my assumptions about killing a docker exec killing the underlying exec.
edit2: WELL... ^C'ing an exec does NOT stop the actual exec. Just the docker process monitoring it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the library's exec_run API handling and checking the Docker Engine API behavior for stopping an exec. Done means exposing a supported way to stop an API-started exec and confirming that the underlying command, not only its monitoring process, is terminated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100