浏览代码

Merge pull request #1126 from ndeloof/main

We actually support volume labels and driver_opts
Guillaume Tardif 4 年之前
父节点
当前提交
c1405aeaa3
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      local/compose/create.go

+ 0 - 1
local/compose/create.go

@@ -512,7 +512,6 @@ func (s *composeService) ensureVolume(ctx context.Context, volume types.VolumeCo
 		eventName := fmt.Sprintf("Volume %q", volume.Name)
 		eventName := fmt.Sprintf("Volume %q", volume.Name)
 		w := progress.ContextWriter(ctx)
 		w := progress.ContextWriter(ctx)
 		w.Event(progress.CreatingEvent(eventName))
 		w.Event(progress.CreatingEvent(eventName))
-		// TODO we miss support for driver_opts and labels
 		_, err := s.apiClient.VolumeCreate(ctx, volume_api.VolumeCreateBody{
 		_, err := s.apiClient.VolumeCreate(ctx, volume_api.VolumeCreateBody{
 			Labels:     volume.Labels,
 			Labels:     volume.Labels,
 			Name:       volume.Name,
 			Name:       volume.Name,