Skip to content

Volume Options - missing "subpath" field. #687

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions