microsoft / vscode-docker

Docker Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker
Other
1.18k stars 508 forks source link

Bug: "The "Containers: Docker" task does not specify a command or a dependsOn property. The task is ignored." #4294

Closed SetTrend closed 2 months ago

SetTrend commented 2 months ago

When running the "Build Image …" context menu item from a Dockerfile, the following error message is output in the VS Code "Output" panel:

Error: The "Containers: Docker" task does not specify a command or a dependsOn property. The task is ignored. Related definition:
{
    "type": "shell",
    "id": "shell,docker build --pull --rm -f \"Dockerfile\" -t test:latest \".\",",
    "problemMatcher": [],
    "label": "Containers: Docker"
}
bwateratmsft commented 2 months ago

This is a known issue in VSCode, you can ignore it. https://github.com/microsoft/vscode/issues/176670