on-internet
← Community

Mounting a single file from a Docker data volume in a Docker

Stack Overflow ·

I'm trying to mount a single file from a Docker volume in a container when using "docker run". I've been able to mount an entire volume as a directory, e.g: docker run -v my_volume:/root/volume my_container I've also mounted single files from the physical machine, e.g: docker run -v /usr/local/bin/docker:/usr/local/bin/docker Is there a way?

Comments

Sign in or sign up to comment and upvote.

No comments yet.