Skip to content

Commit

Permalink
fix: deprecate BindMounts correctly
Browse files Browse the repository at this point in the history
The BindMount type needs to exist in the mapping until the type is
finally removed
  • Loading branch information
mdelapenya committed Feb 1, 2024
1 parent 09b87ce commit d91d8dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker_mounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d91d8dc

Please sign in to comment.