Is scanning/searching the filesystem slower in a Docker container, than on the host? Seems a lot slower from my testing and sometimes I get an EIO scan error.

Specifically I am scanning a read-only (:ro) shared volume.

In this case, the workaround is I can the host first before sharing the volume in the container, it seems much faster.

Any other workarounds? Is my observation imagined or real?

I am running Docker version 18.03.1-ce, build 9ee9f40

on MacOS Sierra

  • What OS do you use?
    – 030
    Commented May 18, 2018 at 21:02
  • I am on MacOS Sierra in this case Commented May 18, 2018 at 21:23
  • running Docker version: 18.03.1-ce, build 9ee9f40 Commented May 18, 2018 at 21:23

1 Answer 1


Docker on MacOS runs on a virtual machine (docker-machine), and it's known that docker-machine volume mounts may perform worse than what you'd expect. It becomes worse especially when it comes operations concerning lots of small files, like scanning the filesystem.

Official Docker documentation also mentions this, and suggests some workarounds by lowering the consistency guarantees.

See: https://docs.docker.com/docker-for-mac/osxfs-caching/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.