From 15313a8ff135c2e268ec467393dae37a7e477030 Mon Sep 17 00:00:00 2001 From: Luca Di Maio Date: Thu, 1 Feb 2024 10:01:19 +0100 Subject: [PATCH] fix: improve tmp mount detection Signed-off-by: Luca Di Maio --- pkg/driver/docker/docker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/driver/docker/docker.go b/pkg/driver/docker/docker.go index 547125134..9ef259016 100644 --- a/pkg/driver/docker/docker.go +++ b/pkg/driver/docker/docker.go @@ -254,7 +254,8 @@ func (d *dockerDriver) RunDockerDevContainer( tmpfsMount := true for _, mount := range options.Mounts { // skip tmpfs mount on /tmp if devcontainer specifies another mount option - if strings.Contains(mount.String(), "/tmp") { + if strings.Contains(mount.String(), "destination=/tmp") || + strings.Contains(mount.String(), "target=/tmp") { tmpfsMount = false } args = append(args, "--mount", mount.String())