github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/libnetwork/config/config_linux.go (about)

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