-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot locate specified Dockerfile: DockerTest\Dockerfile #103
Comments
I have the same problem, with an existing solution that was working fine, until I installed the VS 15.7.1 update and the 18.05.0-ce-win66 (17760) Docker update. |
Same for me |
Same problem for me too. Occurrs on both new and existing projects after upgrading to VS 15.7.1 |
I eventually fixed it by doing both of the following:
to
(in other words I moved the "folder" portion of the path to the
|
The same problem with VS 15.7.2 and docker engine 18.05.0-ce |
Looks like an issue with docker-compose 1.21.2: docker/compose#5969 |
Got the same issue with Visual Studio 2017 15.7.3 and 18.05.0 (didn't write down the exact version, but it was one of the edge channel). |
@torbenj I have this issue with 15.7.3 and 18.03.1-ce-win65 17513 (stable channel) @Sam-Vimes that did not fix it for me either Anybody know what the fix is? |
Turns out the message is a false positive? I notice this in the output window
The actual error message is above this one
Do i have to go and manually delete the docker every time i want to debug... that is like more than 10 times a day. Is this tool supposed to update the container instead? |
I had this issue, tried @Sam-Vimes fix but my solution wouldn't clean or build. It turns out I had previously added a second project to my solution which also had docker support, however I deleted it again however my docker-compose.yml and docker-compose.override.yml still had references to these images and hey presto, my solution built :) |
This issue is being closed as an inactive issue. If you wish to keep it active, please let us know, we are happy to take a look! |
I installed docker for windows (edge version) Version 18.05.0-ce-win66 (17760).
I have Visual Studio 15.7.1.
I created a dot net core console app.
I added Docker support to the project targeting Linux.
When I try and run it is says this:
1>------ Build started: Project: docker-compose, Configuration: Debug Any CPU ------ 1>docker ps --filter "status=running" --filter "name=dockercompose18093898453904356706_dockertest_" --format {{.ID}} -n 1 1>DockerTest -> E:\dev\prydain2\netcore\DockerTest\DockerTest\bin\Debug\netcoreapp2.0\DockerTest.dll 1>docker-compose -f "E:\dev\prydain2\netcore\DockerTest\docker-compose.yml" -f "E:\dev\prydain2\netcore\DockerTest\docker-compose.override.yml" -f "E:\dev\prydain2\netcore\DockerTest\obj\Docker\docker-compose.vs.debug.g.yml" -p dockercompose18093898453904356706 --no-ansi up -d --build --force-recreate --remove-orphans 1>The DOCKER_REGISTRY variable is not set. Defaulting to a blank string. 1>Building dockertest 1>Cannot locate specified Dockerfile: DockerTest\Dockerfile 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets(363,5): error : The DOCKER_REGISTRY variable is not set. Defaulting to a blank string. 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets(363,5): error : Building dockertest 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets(363,5): error : Cannot locate specified Dockerfile: DockerTest\Dockerfile. 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets(363,5): error : 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets(363,5): error : For more troubleshooting information, go to http://aka.ms/DockerToolsTroubleshooting 1>Done building project "docker-compose.dcproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
This is a very basic example, surely this should just work.
But the troubleshooting guide and the tutorial say nothing about what is going on.
PHilip
The text was updated successfully, but these errors were encountered: