Docker Community Forums

Share and learn in the Docker community.

Mount a host directory as a data volume in Dockerfile


(Testeriamtester) #1

Hello. Is there any case to mount a host directory as a data volume in Dockerfile?

Is it real without any external intervention like this

Here is basic required information:
Docker version 1.12.1, build 23cf638
Ubuntu 14.04.1 LTS


(David Maze) #2

No. A built image should be able to run on any system without any specific host dependencies, like a particular data directory.