瀏覽代碼

Pass -log-opts map to logdrivers

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
Ahmet Alp Balkan 10 年之前
父節點
當前提交
8b11592d69
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      daemon/container.go
  2. 1 0
      daemon/logger/factory.go

+ 1 - 0
daemon/container.go

@@ -1452,6 +1452,7 @@ func (container *Container) getLogger() (logger.Logger, error) {
 		return nil, fmt.Errorf("Failed to get logging factory: %v", err)
 	}
 	ctx := logger.Context{
+		Config:        cfg.Config,
 		ContainerID:   container.ID,
 		ContainerName: container.Name,
 	}

+ 1 - 0
daemon/logger/factory.go

@@ -10,6 +10,7 @@ type Creator func(Context) (Logger, error)
 
 // Context provides enough information for a logging driver to do its function
 type Context struct {
+	Config        map[string]string
 	ContainerID   string
 	ContainerName string
 	LogPath       string