Skip to content

Commit

Permalink
Merge pull request #8732 from ndeloof/devies
Browse files Browse the repository at this point in the history
fix support for devices
  • Loading branch information
ulyssessouza authored Oct 2, 2021
2 parents 0a81a98 + 1b106f9 commit fdb90ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/compose/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,9 @@ func getDeployResources(s types.ServiceConfig) container.Resources {
case 1:
src = arr[0]
}
if dst == "" {
dst = src
}
resources.Devices = append(resources.Devices, container.DeviceMapping{
PathOnHost: src,
PathInContainer: dst,
Expand Down

0 comments on commit fdb90ca

Please sign in to comment.