mirror of
https://github.com/docker/compose.git
synced 2026-06-26 19:22:21 +00:00
commit
fdb90ca179
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue