mirror of https://github.com/docker/docs.git
The current wording of "name of the config as it exists in Docker" suggests that the real generated name is used, instead the "key" of `configs` object in the docker-compose file is used.
```yml
version: "3.5"
services:
app:
image: alpine
configs:
# documentation currently suggests this (the "name as in Docker")
# this causes an error- undefined config "name-as-in-docker"
- source: name-as-in-docker
target: /config-with-name-as-in-docker.json
# the correct source to use is the name (key) from this docker-compose file
- source: name-as-in-file
target: /config-with-name-as-in-file.json
configs:
name-as-in-file:
name: name-as-in-docker
file: ./cfg.json
```
|
||
|---|---|---|
| .. | ||
| compose-file | ||
| images | ||
| reference | ||
| aspnet-mssql-compose.md | ||
| cli-command-compatibility.md | ||
| cli-command.md | ||
| completion.md | ||
| django.md | ||
| env-file.md | ||
| environment-variables.md | ||
| extends.md | ||
| faq.md | ||
| gettingstarted.md | ||
| gpu-support.md | ||
| index.md | ||
| install.md | ||
| networking.md | ||
| production.md | ||
| profiles.md | ||
| rails.md | ||
| release-notes.md | ||
| samples-for-compose.md | ||
| startup-order.md | ||
| wordpress.md | ||