defaults: add package to contain server defaults
To reduce the binary size of containerd, we no longer import the `server` package for only a few defaults. This reduces the size of `ctr` by 2MB. There are probably other gains elsewhere. Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
@@ -10,19 +10,6 @@ import (
|
||||
specs "github.com/opencontainers/runtime-spec/specs-go"
|
||||
)
|
||||
|
||||
const (
|
||||
// DefaultRootDir is the default location used by containerd to store
|
||||
// persistent data
|
||||
DefaultRootDir = "/var/lib/containerd"
|
||||
// DefaultStateDir is the default location used by containerd to store
|
||||
// transient data
|
||||
DefaultStateDir = "/run/containerd"
|
||||
// DefaultAddress is the default unix socket address
|
||||
DefaultAddress = "/run/containerd/containerd.sock"
|
||||
// DefaultDebugAddress is the default unix socket address for pprof data
|
||||
DefaultDebugAddress = "/run/containerd/debug.sock"
|
||||
)
|
||||
|
||||
// apply sets config settings on the server process
|
||||
func apply(ctx context.Context, config *Config) error {
|
||||
if config.Subreaper {
|
||||
|
||||
Reference in New Issue
Block a user