docker - Dynamic mount point for Shared Volume Containers -



docker - Dynamic mount point for Shared Volume Containers -

is there way create dynamically named volume during docker's build process? i'd see like:

sudo docker run -e mount_point="/path/to/mount" module/sub-module

and in dockerfile have like:

ln -s /internal/path/to/storage $mount_point volume [$mount_point]

this allow highly valuable volumes-from directive used each storage container built have variant mount point (and avoid colliding consumer wanted consume more 1 data-volume-container).

any ideas welcome.

here how 1 should utilize volumes.

you have 1 container, application container e.g. database. you have container, volumes container holding data. you start volumes container volumes parameter -v. here can name volume dynamically. you start application container alternative --volumes-from using volumes container.

see docs detailed info https://docs.docker.com/userguide/dockervolumes/

docker

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -