0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 13:46:16 +00:00
termux-packages/root-packages/containerd/defaults_unix.go.patch
Henrik Grimler 8680546c85
chore(root/containerd): clean up patches
Seems newer versions of containerd does not work in termux, trying to
run docker with containerd 1.6.24 or 1.7.7 we get:

$ sudo docker run -it ubuntu bash
docker: Error response from daemon: failed to create task for container: failed to start shim: start failed: io.containerd.runc.v2: create new shim socket: listen unix /data/data/com.termux/files/usr/var/run/containerd/s/3f71828f1d6c1ead43fded842abc9c3cf5857c74c3e0704cd83ab177e17cfe6c: bind: invalid argument: exit status 1: unknown.
2023-10-23 22:07:41 +02:00

29 lines
1.3 KiB
Diff

--- a/defaults/defaults_unix.go
+++ b/defaults/defaults_unix.go
@@ -22,19 +22,19 @@
const (
// DefaultRootDir is the default location used by containerd to store
// persistent data
- DefaultRootDir = "/var/lib/containerd"
+ DefaultRootDir = "@TERMUX_PREFIX@/var/lib/containerd"
// DefaultStateDir is the default location used by containerd to store
// transient data
- DefaultStateDir = "/run/containerd"
+ DefaultStateDir = "@TERMUX_PREFIX@/var/run/containerd"
// DefaultAddress is the default unix socket address
- DefaultAddress = "/run/containerd/containerd.sock"
+ DefaultAddress = "@TERMUX_PREFIX@/var/run/containerd/containerd.sock"
// DefaultDebugAddress is the default unix socket address for pprof data
- DefaultDebugAddress = "/run/containerd/debug.sock"
+ DefaultDebugAddress = "@TERMUX_PREFIX@/var/run/containerd/debug.sock"
// DefaultFIFODir is the default location used by client-side cio library
// to store FIFOs.
- DefaultFIFODir = "/run/containerd/fifo"
+ DefaultFIFODir = "@TERMUX_PREFIX@/var/run/containerd/fifo"
// DefaultRuntime is the default linux runtime
DefaultRuntime = "io.containerd.runc.v2"
// DefaultConfigDir is the default location for config files.
- DefaultConfigDir = "/etc/containerd"
+ DefaultConfigDir = "@TERMUX_PREFIX@/etc/containerd"
)