go-runc icon indicating copy to clipboard operation
go-runc copied to clipboard

runc bindings for Go

Results 17 go-runc issues
Sort by recently updated
recently updated
newest added

See https://github.com/golang/go/issues/27505 for context. `Pdeathsig` isn't safe to set without locking to the current OS thread, because otherwise thread termination will send the signal, which isn't the desired behavior. I...

runc added more stats https://github.com/opencontainers/runc/blob/main/libcontainer/cgroups/stats.go , we should add these in go-runc as well

Signed-off-by: ningmingxiao

Hi, I'm new with Go, so it will be a stupid question... Sorry. Could you provide a simple example how to run a container with go-runc? Thanks!

question

This PR is part of the work for https://github.com/containerd/containerd/issues/5931. Previous code sent the signal as an integer and converted it to a string using strconv. Instead, change the signature to...

In `runc.Exec`, [here](https://github.com/containerd/go-runc/blob/master/runc.go#L201) the exec command is created with `exec.CommandContext`, which will kill the `runc` command with `os.Process.Kill` when the context is done. And when `runc` is killed by `SIGKILL`,...

Currently (to my knowledge) there is no way of passing the `--auto-dedup` to runc via this library. This should be allowed.

`runc events` supports time intervals for msec. Example ``` # runc events --interval 0.5s ``` The below line converts millisecond time.Duration API call to `int`, making the interval 0. Thus...

`os/exec` allows 2 ways to wait on command: `Cmd.Wait()` makes sure all the goroutines that can be created by `Cmd.Start()` are cleaned up and doesn't return before stdio is closed....

### Issue Closes #73 ### Description This PR adds `runc checkpoint --auto-dedup ` and `runc restore --auto-dedup ` support. Signed-off-by: Austin Vazquez