Sign inSign up

eugeneware/mmap

By eugeneware

Updated about 10 years ago

Test docker mmap() volume mappings.

Image
0

1.2K

eugeneware/mmap repository overview

mmap test

Test if mmap works using internal docker filesystem

$ docker run --rm -it eugeneware/mmap
hello
world
mmap works from internal filesystem - hoorah!

Test if mmap works using volume mapping:

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.

Build it yourself

$ docker build -t eugeneware/mmap .
...

Tag summary

Content type

Image

Digest

Size

131.3 MB

Last updated

about 10 years ago

docker pull eugeneware/mmap