Reputation: 333
When running a docker-compose.dcproj
project from the Visual Studio 2019 (using regular F5 Debug) it automatically executes this command (unrelated parts removed):
docker-compose -f -p dockercompose5867848916081622061 up
How do I force to regenerate this hash dockercompose5867848916081622061
or replace it with my own value? The issue is that if the solution folder was copied from another project the containers are unable to respond to any incoming requests and just hang
UPD: changing this name didn't help me, getting a meaningful name would still be helpful though
Upvotes: 19
Views: 5086
Reputation: 817
As of Visual Studio 16.9, you can use <DockerComposeProjectName>my-docker-compose-project</DockerComposeProjectName>
in the dcproj
file to specify the docker-compose project name.
See https://github.com/microsoft/DockerTools/issues/171
Upvotes: 34