@@ -93,27 +93,17 @@ Here is an example configuration file:
93
93
Passing the configuration file to the container
94
94
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95
95
96
- The configuration can be either passed via the ``KOLLA_CONFIG `` environment
97
- variable or as a file bind-mounted into the container. When bind-mounting the
98
- configuration file, the ``KOLLA_CONFIG_FILE `` environment variable controls
99
- where the file is located in the container, the default path being
96
+ The configuration to the container can be passed through a dedicated path:
100
97
``/var/lib/kolla/config_files/config.json ``.
101
-
102
- Passing the configuration file as environment variable:
103
-
104
- .. code-block :: console
105
-
106
- docker run -e KOLLA_CONFIG_STRATEGY=COPY_ALWAYS \
107
- -e KOLLA_CONFIG='{ "command": "...", "permissions": [ { "path": "...", } ] }' \
108
- kolla-image
98
+ It is advised to ensure this path is mounted read-only for security reasons.
109
99
110
100
Mounting the configuration file in the container:
111
101
112
102
.. code-block :: console
113
103
114
104
docker run -e KOLLA_CONFIG_STRATEGY=COPY_ALWAYS \
115
- -e KOLLA_CONFIG_FILE=/ config.json \
116
- -v /path/to/config.json:/config.json kolla-image
105
+ -v /path/to/ config.json:/var/lib/kolla/config_files/config.json:ro \
106
+ kolla-image
117
107
118
108
.. _kolla_api_environment_variables :
119
109
@@ -126,10 +116,6 @@ Variables to pass to the containers
126
116
The Kolla containers also understand some environment variables to change their
127
117
behavior at runtime:
128
118
129
- * **KOLLA_CONFIG **: load kolla config from the environment, takes precedence
130
- over ``KOLLA_CONFIG_FILE ``.
131
- * **KOLLA_CONFIG_FILE **: path to kolla json config file, defaults to
132
- ``/var/lib/kolla/config_files/config.json ``.
133
119
* **KOLLA_CONFIG_STRATEGY ** (required): Defines how the :ref: `kolla_start
134
120
script <kolla_api_external_config>` copies the configuration file. Must be
135
121
one of:
0 commit comments