From 1b106f9133195ced8ea0f3243679214782c1099b Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Sat, 2 Oct 2021 09:22:58 +0200 Subject: [PATCH] fix support for devices Signed-off-by: Nicolas De Loof --- pkg/compose/create.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/compose/create.go b/pkg/compose/create.go index 0e604506d..7fecf5273 100644 --- a/pkg/compose/create.go +++ b/pkg/compose/create.go @@ -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,