termux-packages/root-packages/docker/daemon.go.patch
Frederico F. de Oliveira a435d86923
Create daemon.go.patch
Dockerd doesn't honor existing containerd configs and creates its own configuration file everytime it starts. So, edit the config file creation code to fix paths.
2022-04-18 14:31:50 +05:30

16 lines
514 B
Diff

diff --git a/moby-20.10.1/cmd/dockerd/daemon.go b/moby/cmd/dockerd/daemon.go
index 7fe8a6c..684f297 100644
--- a/moby-20.10.1/cmd/dockerd/daemon.go
+++ b/moby/cmd/dockerd/daemon.go
@@ -554,6 +554,11 @@ func (cli *DaemonCli) getContainerdDaemonOpts() ([]supervisor.DaemonOpt, error)
opts = append(opts, supervisor.WithPlugin("cri", nil))
}
+ type Config struct {Path string `toml:"path"`}
+ opts = append(opts, supervisor.WithPlugin("opt", &Config{
+ Path: "/data/docker/opt",
+ }))
+
return opts, nil
}