config_linux.go 276 B

1234567891011
  1. package config
  2. import "github.com/docker/docker/libnetwork/osl"
  3. // optionExecRoot on Linux sets both the controller's ExecRoot and osl.basePath.
  4. func optionExecRoot(execRoot string) Option {
  5. return func(c *Config) {
  6. c.ExecRoot = execRoot
  7. osl.SetBasePath(execRoot)
  8. }
  9. }