Skip to content

Commit

Permalink
daemon/cluster/executor: Add volume Subpath
Browse files Browse the repository at this point in the history
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
  • Loading branch information
vvoland committed Apr 12, 2024
1 parent fb39ac7 commit d8e4195
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion daemon/cluster/executor/container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,8 @@ func convertMount(m api.Mount) enginemount.Mount {

if m.VolumeOptions != nil {
mount.VolumeOptions = &enginemount.VolumeOptions{
NoCopy: m.VolumeOptions.NoCopy,
NoCopy: m.VolumeOptions.NoCopy,
Subpath: m.VolumeOptions.Subpath,
}
if m.VolumeOptions.Labels != nil {
mount.VolumeOptions.Labels = make(map[string]string, len(m.VolumeOptions.Labels))
Expand Down

0 comments on commit d8e4195

Please sign in to comment.