2016-10-30 2 views
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をどこに呼び出すのか分かりません。

答えて

関連する問題