diff --git a/docker_mounts.go b/docker_mounts.go index d5d075c053..28e3096de1 100644 --- a/docker_mounts.go +++ b/docker_mounts.go @@ -107,8 +107,10 @@ func mapToDockerMounts(containerMounts ContainerMounts) []mount.Mount { containerMount.VolumeOptions = typedMounter.GetVolumeOptions() case TmpfsMounter: containerMount.TmpfsOptions = typedMounter.GetTmpfsOptions() - default: + case BindMounter: Logger.Printf("Mount type %s is not supported by Testcontainers for Go", m.Source.Type()) + default: + // The provided source type has no custom options } mounts = append(mounts, containerMount)