Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cli/compose/convert/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func handleVolumeToMount(

if volume.Volume != nil {
result.VolumeOptions.NoCopy = volume.Volume.NoCopy
result.VolumeOptions.Subpath = volume.Volume.Subpath
}

if stackVolume.Name != "" {
Expand Down
3 changes: 2 additions & 1 deletion cli/compose/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@ type ServiceVolumeBind struct {

// ServiceVolumeVolume are options for a service volume of type volume
type ServiceVolumeVolume struct {
NoCopy bool `mapstructure:"nocopy" yaml:"nocopy,omitempty" json:"nocopy,omitempty"`
NoCopy bool `mapstructure:"nocopy" yaml:"nocopy,omitempty" json:"nocopy,omitempty"`
Subpath string `mapstructure:"subpath" yaml:"subpath,omitempty" json:"subpath,omitempty"`
}

// ServiceVolumeImage are options for a service volume of type image
Expand Down
Loading