Test docker mmap() volume mappings.
1.2K
$ docker run --rm -it eugeneware/mmap
hello
world
mmap works from internal filesystem - hoorah!
Mape sure local.txt is in your current directory. This tests if the
volume that you're mapping from can run mmap(). In the case of
virtualbox's vboxvfs it can't. See this issue
for more details.
$ docker run --rm -it -v `pwd`/local.txt:/app/test.txt eugeneware/mmap
hello
world
mmap works from local file - hoorah!
If you get any other error message and don't see the contents of the file
then there is an issue with mmap() or the file system stopping access
to the file.
$ docker build -t eugeneware/mmap .
...
Content type
Image
Digest
Size
131.3 MB
Last updated
about 10 years ago
docker pull eugeneware/mmap