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

Issue when trying to build a docker image #1871

Closed
pedmands opened this issue Apr 16, 2020 · 2 comments
Closed

Issue when trying to build a docker image #1871

pedmands opened this issue Apr 16, 2020 · 2 comments

Comments

@pedmands
Copy link

Does this occur consistently? Yes
Repro steps:

  1. Add Docker Files to Workspace (successfully)
  2. Docker Images: Build Image... (fails after selecting workspace folder)

Action: vscode-docker.images.build
Error type: Error
Error Message: Task not found

Version: 1.0.0
OS: darwin
OS Release: 19.3.0
Product: Visual Studio Code
Product Version: 1.44.1
Language: en

Call Stack
file:/workbench.desktop.main.js:3930:286
processTicksAndRejections task_queues.js:85:5

Dockerfile
docker-compose.yml
package.json

Project Files

@bwateratmsft
Copy link
Collaborator

Hey @pedmands, this looks like the same error as #1781. We think that error might in turn have been due to the same issue as #1647.

Since it prompted you to select a workspace folder I assume that means you have multiple of them. In your workspace file, there should be some tasks related to Docker (build, run), can you try moving them to yourWorkspaceFolder/.vscode/tasks.json, can see if this issue still occurs? If you're using debugging as well, there are probably launch configurations in that file that need to move to .../launch.json.

@vscodebot
Copy link

vscodebot bot commented May 7, 2020

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

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

No branches or pull requests

2 participants