-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
type: bugSomething isn't workingSomething isn't working
Description
Description
When runsc run -detach
is used, runsc delete -force
immediately kills the process.
But without -detach
flag, this command waits for 5 seconds, then prints "destroying container: stopping container: gofer is still running", and terminates the container.
Steps to reproduce
Using default config.json
.
First, properly working version
$ sudo bazel-bin/runsc/runsc_/runsc run -detach -bundle bu xx
$ sudo bazel-bin/runsc/runsc_/runsc list
ID PID STATUS BUNDLE CREATED OWNER
xx 6005 running bu 2025-08-16T07:40:18.351042194Z root
$ sudo bazel-bin/runsc/runsc_/runsc delete -force xx
(works fast)
sudo bazel-bin/runsc/runsc_/runsc list
ID PID STATUS BUNDLE CREATED OWNER
Now slow version
sudo bazel-bin/runsc/runsc_/runsc run -bundle bu xx
then in another terminal
$ sudo ./bazel-bin/runsc/runsc_/runsc list
ID PID STATUS BUNDLE CREATED OWNER
xx 6209 running bu 2025-08-16T07:41:44.132236625Z root
$ sudo bazel-bin/runsc/runsc_/runsc delete -force xx
(waits for 5 seconds then prints the message and exits with error)
destroying container: stopping container: gofer is still running
$ sudo ./bazel-bin/runsc/runsc_/runsc list
ID PID STATUS BUNDLE CREATED OWNER
I consider this a bug because:
-detach
flag should not affect how process is terminated- container process can be terminated faster than in 5 seconds
- container was terminated successfully, so exit code should be zero
It is not a blocker, because there's runsc kill
.
runsc version
master
uname
Linux st-devbox.xxx 6.14.0-1012-gcp #12-Ubuntu SMP Wed Jul 16 03:18:29 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
repo state (if built from source)
release-20250804.0-48-g5077500e6
Metadata
Metadata
Assignees
Labels
type: bugSomething isn't workingSomething isn't working