You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, in the description of the docker-compose.yml file, if I register the same key in the same service definition, the value defined later will be applied. This issue cannot be detected by docker-compose's validation feature. Upon investigation, it is the specification of the safe_load method of the pyyaml standard library, and currently pyyaml does not seem to take any measures. yaml/pyyaml#165
I need to manually check that the same key is not defined in the docker-compose.yml file in our project.
I would like to solve this problem with docker-compose's validation feature if possible.
The following issues have been closed, is this a resolved issue?
I would like to know if there are already cases of countermeasures.
I would also like to know if it is an issue that should be addressed in our project. #5267
Output of docker-compose version
docker-compose version 1.25.5, build 8a1c60f6
Output of docker version
Client:
Version: 19.03.6
API version: 1.40
Go version: go1.12.17
Git commit: 369ce74a3c
Built: Fri Feb 28 23:45:43 2020
OS/Arch: linux/amd64
Experimental: false
Server:
Engine:
Version: 19.03.6
API version: 1.40 (minimum version 1.12)
Go version: go1.12.17
Git commit: 369ce74a3c
Built: Wed Feb 19 01:06:16 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.3.3-0ubuntu1~18.04.2
GitCommit:
runc:
Version: spec: 1.0.1-dev
GitCommit:
docker-init:
Version: 0.18.0
GitCommit:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description of the issue
Currently, in the description of the docker-compose.yml file, if I register the same key in the same service definition, the value defined later will be applied. This issue cannot be detected by docker-compose's validation feature. Upon investigation, it is the specification of the
safe_load
method of the pyyaml standard library, and currently pyyaml does not seem to take any measures.yaml/pyyaml#165
I need to manually check that the same key is not defined in the docker-compose.yml file in our project.
I would like to solve this problem with docker-compose's validation feature if possible.
The following issues have been closed, is this a resolved issue?
I would like to know if there are already cases of countermeasures.
I would also like to know if it is an issue that should be addressed in our project.
#5267
Output of
docker-compose version
Output of
docker version
Steps to reproduce the issue
Expected result
or
Additional information
OS version / distribution,
docker-compose
install method, etc.The text was updated successfully, but these errors were encountered: