Folder is in $INC but module loads from other location

I need to test my project with new module version.
But for some reason Perl can not load it.

docker-compose run -v /data/projects/My-Module:/perl5lib project-container perl -I/perl5lib -MMy::Module -e 'print $INC{"My/"}'

It must print


But in fact it prints


Same result with

docker-compose run -e PERL5LIB=/perl5lib -v /data/projects/My-Module:/perl5lib project-container perl -MMy::Module -e 'print $INC{"My/"}'

Please help me to find what could be the issue.

$ perl --version

This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-gnu-thread-multi

$ docker-compose --version
docker-compose version 1.24.1, build 4667896

Source: StackOverflow