mirror of
https://github.com/docker/compose.git
synced 2025-07-28 16:14:06 +02:00
Merge pull request #1126 from ndeloof/main
We actually support volume labels and driver_opts
This commit is contained in:
commit
c1405aeaa3
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user