From 60cf941aeb1e1e5e1b230f111fc5de574d14e858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Thu, 1 Feb 2024 22:50:42 +0100 Subject: [PATCH] fix: deprecate BindMounts correctly (#2190) The BindMount type needs to exist in the mapping until the type is finally removed --- docker_mounts.go | 1 + 1 file changed, 1 insertion(+) diff --git a/docker_mounts.go b/docker_mounts.go index 28e3096de1..c45bc50eaf 100644 --- a/docker_mounts.go +++ b/docker_mounts.go @@ -3,6 +3,7 @@ package testcontainers import "github.com/docker/docker/api/types/mount" var mountTypeMapping = map[MountType]mount.Type{ + MountTypeBind: mount.TypeBind, // Deprecated, it will be removed in a future release MountTypeVolume: mount.TypeVolume, MountTypeTmpfs: mount.TypeTmpfs, MountTypePipe: mount.TypeNamedPipe,