Skip to content
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

Run in docker container throw an exception debugging Core CLR #681

Closed
tachev opened this issue Dec 5, 2018 · 4 comments
Closed

Run in docker container throw an exception debugging Core CLR #681

tachev opened this issue Dec 5, 2018 · 4 comments
Assignees

Comments

@tachev
Copy link

tachev commented Dec 5, 2018

Repro steps:

  1. Opened a .NET project. Converted it to .NET Core
  2. Click Command+F5
  3. Selected the docker preview option
    4: Got the exception

Action: debugCoreClr
Error type: 1
Error Message: Command failed: docker build --rm -f "/IdentityServer/IdentityProvider/Dockerfile" --label "com.microsoft.created-by=visual-studio-code" -t "identityprovider.web:dev" --target "base" "/IdentityServer/IdentityProvider"
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /IdentityServer/IdentityProvider/Dockerfile: no such file or directory

Version: 0.4.0
OS: darwin

@StephenWeatherford StephenWeatherford changed the title Run in docker container throw an exception Run in docker container throw an exception debugging Core CLR Dec 6, 2018
@StephenWeatherford
Copy link
Contributor

FYI @philliphoff

@philliphoff
Copy link
Member

@tachev Did you have an existing (or did you add) a Dockerfile prior to debugging? If not, if you add a Dockerfile (e.g. using the task to scaffold the Docker assets), does debugging then work?

Based on the error, it looks like the Dockerfile was missing or not in the expected location. If that's the case, then we might just need to add a pre-debugging check that the Dockerfile exists before continuing forward.

@tachev
Copy link
Author

tachev commented Dec 6, 2018 via email

@StephenWeatherford
Copy link
Contributor

Phil - If you want to go that route, some of the commands will ask about adding a dockerfile:
https://github.com/Microsoft/vscode-docker/blob/a29573dcb36a738727419d11d1a8ea094794ac7e/commands/build-image.ts#L67

@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants