Skip to content

Volume Options - missing "subpath" field. #687

@dazinator

Description

@dazinator

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; }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions