dotnet / dotnet/Docker.DotNet

Volume Options - missing "subpath" field.

Open
#687 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2.4k
Forks
416
PR merge metrics
No merged PRs in 30d

Description

It should be possible to now specify `subpath` when mounting a volume.

as per: https://docs.docker.com/reference/compose-file/services/#volumes

however this `subpath` property is not available on this model:

```

namespace Docker.DotNet.Models
{
[DataContract]
public class Mount // (mount.Mount)
{
[DataMember(Name = "Type", EmitDefaultValue = false)]
public string Type { get; set; }

[DataMember(Name = "Source", EmitDefaultValue = false)]
public string Source { get; set; }

[DataMember(Name = "Target", EmitDefaultValue = false)]
public string Target { get; set; }

[DataMember(Name = "ReadOnly", EmitDefaultValue = false)]
public bool ReadOnly { get; set; }

[DataMember(Name = "Consistency", EmitDefaultValue = false)]
public string Consistency { get; set; }

[DataMember(Name = "BindOptions", EmitDefaultValue = false)]
public BindOptions BindOptions { get; set; }

[DataMember(Name = "VolumeOptions", EmitDefaultValue = false)]
public VolumeOptions VolumeOptions { get; set; }

[DataMember(Name = "TmpfsOptions", EmitDefaultValue = false)]
public TmpfsOptions TmpfsOptions { get; set; }
}
}

namespace Docker.DotNet.Models
{
[DataContract]
public class VolumeOptions // (mount.VolumeOptions)
{
[DataMember(Name = "NoCopy", EmitDefaultValue = false)]
public bool NoCopy { get; set; }

[DataMember(Name = "Labels", EmitDefaultValue = false)]
public IDictionary Labels { get; set; }

[DataMember(Name = "DriverConfig", EmitDefaultValue = false)]
public Driver DriverConfig { get; set; }
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.