
Allow plugins to be mapped and returned by their ID. Add skip plugin to allow plugins to decide whether they should be loaded. Signed-off-by: Derek McGowan <derek@mcgstyle.net>
22 lines
399 B
Go
22 lines
399 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
|
|
"github.com/containerd/containerd/server"
|
|
)
|
|
|
|
func defaultConfig() *server.Config {
|
|
return &server.Config{
|
|
Root: filepath.Join(os.Getenv("programfiles"), "containerd", "root"),
|
|
GRPC: server.GRPCConfig{
|
|
Address: `\\.\pipe\containerd-containerd`,
|
|
},
|
|
Debug: server.Debug{
|
|
Level: "info",
|
|
Address: `\\.\pipe\containerd-debug`,
|
|
},
|
|
}
|
|
}
|