Skip to content

Commit

Permalink
fix: improve tmp mount detection
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Di Maio <[email protected]>
  • Loading branch information
89luca89 committed Feb 1, 2024
1 parent a8656ff commit 15313a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/driver/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 15313a8

Please sign in to comment.