Docker Community Forums

Share and learn in the Docker community.

Accessing docker volumes from the OSX Host


(Jsierles) #1

Is it possible to access these volumes directly on the OS X filesystem?

My use case is having a set of NPM modules installed inside the container and also be able to symlink them into a directory. I see the ouput of docker inspect shows paths which I assume are internal to the VM.

Cheers,
Joshua


(David Maze) #2

No, and it’s not really possible on Linux either.

Filesystems don’t really ever cross container boundaries, except in the case specific case of volumes shared between containers.


(Jsierles) #3

Fair enough! Thanks.

For now I came up with the solution to mount a host volume in the container and copy files to it by running a command post-start.