fix support for devices
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
0a81a98b7d
commit
1b106f9133
|
|
@ -525,6 +525,9 @@ func getDeployResources(s types.ServiceConfig) container.Resources {
|
||||||
case 1:
|
case 1:
|
||||||
src = arr[0]
|
src = arr[0]
|
||||||
}
|
}
|
||||||
|
if dst == "" {
|
||||||
|
dst = src
|
||||||
|
}
|
||||||
resources.Devices = append(resources.Devices, container.DeviceMapping{
|
resources.Devices = append(resources.Devices, container.DeviceMapping{
|
||||||
PathOnHost: src,
|
PathOnHost: src,
|
||||||
PathInContainer: dst,
|
PathInContainer: dst,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue