Public | Automated Build

Last pushed: a year ago
Short Description
Test docker mmap() volume mappings.
Full Description

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 .
...
Docker Pull Command
Owner
eugeneware
Source Repository

Comments (0)