1
でデーモンコールlibcontainerは、私が見つけたデーモンこれらのコードのインスタンスが、単にいくつかの設定を作成するように見えますソース:createContainer
// NewBaseContainer creates a new container with its
// basic configuration.
func NewBaseContainer(id, root string) *Container {
return &Container{
CommonContainer: CommonContainer{
ID: id,
State: NewState(),
ExecCommands: exec.NewStore(),
Root: root,
MountPoints: make(map[string]*volume.MountPoint),
StreamConfig: runconfig.NewStreamConfig(),
attachContext: &attachContext{},
},
}
}
してコンテナを作成します。私は実際のコンテナを作成するためにlibcontainerをどこに呼び出すのか分かりません。