mirror of
https://github.com/containers/podman.git
synced 2025-09-19 00:56:15 +08:00
Wire in net plugin into libpod
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #109 Approved by: mheon
This commit is contained in:
@ -250,6 +250,21 @@ func WithNoPivotRoot(noPivot bool) RuntimeOption {
|
||||
}
|
||||
}
|
||||
|
||||
// WithCNIDirs sets the CNI configuration and network plugin directories used by
|
||||
// the CNI network plugins
|
||||
func WithCNIDirs(cniConfigDir, cniPluginDir string) RuntimeOption {
|
||||
return func(rt *Runtime) error {
|
||||
if rt.valid {
|
||||
return ErrRuntimeFinalized
|
||||
}
|
||||
|
||||
rt.config.CNIConfigDir = cniConfigDir
|
||||
rt.config.CNIPluginDir = cniPluginDir
|
||||
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// Container Creation Options
|
||||
|
||||
// WithShmDir sets the directory that should be mounted on /dev/shm
|
||||
|
Reference in New Issue
Block a user