mirror of https://github.com/docker/compose.git
commit
fdb90ca179
|
@ -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