You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 moby/moby#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.
The text was updated successfully, but these errors were encountered:
But the pid is the outside pid of the process, not the internal. Which has a problem if managing from within another docker container, or if the manager is not root, but the process is running as root inside the container.
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 moby/moby#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.
The text was updated successfully, but these errors were encountered: