We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83cccea commit 850f6b0Copy full SHA for 850f6b0
docs/configuration.rst
@@ -166,6 +166,19 @@ of volume options:
166
hostpath: /host/foo
167
options: ro,cached
168
169
+The keys used in volume mappings can contain environment variables **that are
170
+expanded in the host environment**. For example, this configuration would map
171
+the user's ``/home/username/.config/application1`` directory into the container
172
+at the same path.
173
+
174
+.. code-block:: yaml
175
176
+ volumes:
177
+ $TEST_HOME/.config/application1: $TEST_HOME/.config/application1
178
179
+Note that because variable expansion is now applied to all volume keys, if one
180
+desires to have a key with an explicit ``$`` character, it must be written as
181
+``$$``.
182
183
184
.. _conf_aliases:
0 commit comments