docker - Dynamic mount point for Shared Volume Containers -


Is there a way to create dynamically named clusters during the build process of dockers? I want to see something like this:

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

and then The donor file has something similar:

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

This would be extremely valuable < Allow the directive to use from the code> versions, but there can be a different mount point in the production of each storage container (and avoid colliding with a consumer which is more than one date A-quantity wanted to consume)

Any ideas would be very welcome.

Here's how the volume should be used.

  • You have a container, for example a database of your app container.
  • You have another container, which says that your volume container actually keeps your data.
  • You start your volume container with the volume parameter -v . Here you can dynamically name your volume
  • You can start your app container with the - Volume-cum option using your volume container.

    See the documentation for detailed information

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -