Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volume Options - missing "subpath" field. #687

Open
dazinator opened this issue Oct 24, 2024 · 0 comments
Open

Volume Options - missing "subpath" field. #687

dazinator opened this issue Oct 24, 2024 · 0 comments

Comments

@dazinator
Copy link

dazinator commented Oct 24, 2024

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<string, string> Labels { get; set; }

        [DataMember(Name = "DriverConfig", EmitDefaultValue = false)]
        public Driver DriverConfig { get; set; }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant