Overriding VS 2017's docker-compose dynamically created entrypoint

旧时模样 提交于 2019-12-06 03:26:34

问题


When using the integrated docker-compose structure in Visual Studio 2017, the system provides visibility to a two-tiered docker-compose structure.

docker-compose.yml and docker-compose.override.yml  

Settings in the override take precedent over those in the former file. When the file is actually executed, it includes a third, auto-generated Docker compose file ...

docker-compose.vs.*configuration*.g.yml

This latter file contains mostly values related to debugging interactions and mapping volumes in for code you want. Generally, you wouldn't want to change any of these.

One thing that it does by default is to set the entrypoint which ends up becoming the command for the container. As this file is applied last (after the compose file and the override, it is holding precedence over the other two resulting in not being able to override that entrypoint.

Is there a way around this?

来源:https://stackoverflow.com/questions/46331920/overriding-vs-2017s-docker-compose-dynamically-created-entrypoint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!