You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a .devcontainer/Dockerfile using buildkit with the starting line, # syntax=docker/dockerfile:1. It has been working for the past several versions of vscode. Since updating to v1.72.0 my devcontainer fails to run.
When starting my devcontainer, vscode runs: docker-compose --project-namemyproject -f /path/to/compose.yaml -f /Users/me/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1665287802265.yml build
And the dockerfile it references is a modified copy of my original Dockerfile, however the # syntax=docker/dockerfile:1 has been stripped, resulting in the error: failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error line 13: unknown instruction: SET
Modifying the referenced Dockerfile-with-features and adding back in the # syntax=docker/dockerfile:1 allows the build command to proceed from the command line, however vscode will generate a different set of paths if I try to build the container in-app so the issue will repeat.
I have a
.devcontainer/Dockerfile
using buildkit with the starting line, # syntax=docker/dockerfile:1. It has been working for the past several versions of vscode. Since updating to v1.72.0 my devcontainer fails to run.When starting my devcontainer, vscode runs:
docker-compose --project-namemyproject -f /path/to/compose.yaml -f /Users/me/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1665287802265.yml build
That generated config file looks like:
And the
dockerfile
it references is a modified copy of my originalDockerfile
, however the# syntax=docker/dockerfile:1
has been stripped, resulting in the error:failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error line 13: unknown instruction: SET
Modifying the referenced
Dockerfile-with-features
and adding back in the# syntax=docker/dockerfile:1
allows the build command to proceed from the command line, however vscode will generate a different set of paths if I try to build the container in-app so the issue will repeat.The specific part of my Dockerfile it is choking on without the
# syntax
line is aRUN
heredoc: https://www.docker.com/blog/introduction-to-heredocs-in-dockerfiles/Note that I am not actually using Features in my devcontainer.json.
Apologies if this is better suited in the vscode Issues—please direct me to the appropriate repository.
The text was updated successfully, but these errors were encountered: