Yes, and according to 'the community' you should not use VOLUME for things like passing a hostname, ip address, or any other configuration option which can conceivably be passed via a variable or by a configuration service.
There is actually a part of the community that feels like VOLUME is an ugly hack that despoils the purity of the concept of a container, and it must be removed at some point in the future. I don't know how large that group is, but they absolutely exist. For my systems I'm only using VOLUME for things like the actual data files for a MongoDB instance, or the persistent queue data for a MQ server. There is a good argument for putting the secret key for a network service in a VOLUME and all the public parts in an etcd service along with hostname and any other public-ish config data, but VOLUME should probably not be the first tool in the box for conveying configuration data to a container unless its not possible to do it by other means securely. On Fri, Aug 4, 2017 at 10:20 AM, Neale Ferguson <[email protected]> wrote: > That is why VOLUME is there so that your persistent or customized data is > not part of the image. > > On 8/4/17, 10:18 AM, "Linux on 390 Port on behalf of Robert J Brenneman" > <[email protected] on behalf of [email protected]> wrote: > > >best practice with docker is to keep a docker image absolutely generic so > >that it can be deployed to dev/test/production without any changes. Any > >personalization that needs to be done to make the docker container do it's > >job should be either > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO LINUX-390 or > visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > ---------------------------------------------------------------------- > For more information on Linux on System z, visit > http://wiki.linuxvm.org/ > -- Jay Brenneman ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
