ソースを参照

add support for annotations

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 1 年間 前
コミット
c5a760ce43
1 ファイル変更1 行追加0 行削除
  1. 1 0
      pkg/compose/create.go

+ 1 - 0
pkg/compose/create.go

@@ -307,6 +307,7 @@ func (s *composeService) getCreateConfigs(ctx context.Context,
 
 	hostConfig := container.HostConfig{
 		AutoRemove:     opts.AutoRemove,
+		Annotations:    service.Annotations,
 		Binds:          binds,
 		Mounts:         mounts,
 		CapAdd:         strslice.StrSlice(service.CapAdd),