fix support for devices

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2021-10-02 09:22:58 +02:00
parent 0a81a98b7d
commit 1b106f9133
No known key found for this signature in database
GPG Key ID: 9858809D6F8F6E7E
1 changed files with 3 additions and 0 deletions

View File

@ -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,