Derek McGowan
2ac2b9c909
Make api a Go sub-module
...
Allow the api to stay at the same v1 go package name and keep using a
1.x version number. This indicates the API is still at 1.x and allows
sharing proto types with containerd 1.6 and 1.7 releases.
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-05-02 11:03:00 -07:00
Danny Canter
b50e9eae43
Refactor spots to make use of sys.IgnoringEintr
...
This makes use of pkg/sys's IgnoringEintr function
to clean up some of the redundant eintr loops we
had laying around.
Signed-off-by: Danny Canter <danny@dcantah.dev >
2024-04-10 11:24:01 -07:00
Maksym Pavlenko
6a96e45012
Move shim package to pkg
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
2024-03-07 10:05:26 -08:00
Derek McGowan
dbc74db6a1
Move runtime to core/runtime
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:58:04 -08:00
Derek McGowan
5fdf55e493
Update go module to github.com/containerd/containerd/v2
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-10-29 20:52:21 -07:00
Derek McGowan
508aa3a1ef
Move to use github.com/containerd/log
...
Add github.com/containerd/log to go.mod
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-09-22 07:53:23 -07:00
Jin Dong
fc45365fa1
Remove most logrus
...
Signed-off-by: Jin Dong <jin.dong@databricks.com >
2023-08-26 14:31:53 -04:00
Wei Fu
6b7e237fc7
chore: use go fix to cleanup old +build buildtag
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2022-12-29 14:25:14 +08:00
Kazuyoshi Kato
6596a70861
Use github.com/containerd/cgroups/v3 to remove gogo
...
Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com >
2022-11-14 21:07:48 +00:00
haoyun
bbe46b8c43
feat: replace github.com/pkg/errors to errors
...
Signed-off-by: haoyun <yun.hao@daocloud.io >
Co-authored-by: zounengren <zouyee1989@gmail.com >
2022-01-07 10:27:03 +08:00
Akihiro Suda
d3aa7ee9f0
Run go fmt with Go 1.17
...
The new `go fmt` adds `//go:build` lines (https://golang.org/doc/go1.17#tools ).
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2021-08-22 09:31:50 +09:00
Akihiro Suda
2f601013e6
cgroup2: implement containerd.events.TaskOOM event
...
How to test (from https://github.com/opencontainers/runc/pull/2352#issuecomment-620834524 ):
(host)$ sudo swapoff -a
(host)$ sudo ctr run -t --rm --memory-limit $((1024*1024*32)) docker.io/library/alpine:latest foo
(container)$ sh -c 'VAR=$(seq 1 100000000)'
An event `/tasks/oom {"container_id":"foo"}` will be displayed in `ctr events`.
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2020-06-01 14:00:13 +09:00