fix: volume driver options are not used if driver if not specified [bug #210] (#211)

This commit is contained in:
Justin Bradford
2025-12-08 15:58:43 +10:00
committed by GitHub
parent dfe12ca644
commit 6373d4097c
2 changed files with 109 additions and 1 deletions
+1 -1
View File
@@ -249,7 +249,7 @@ func dockerVolumeSpecFromCompose(serviceVolume types.ServiceVolumeConfig, volume
}
if !volume.External {
if volume.Driver != "" {
if volume.Driver != "" || len(volume.DriverOpts) > 0 {
spec.VolumeOptions.Driver = &mount.Driver{
Name: volume.Driver,
Options: volume.DriverOpts,