-
Notifications
You must be signed in to change notification settings - Fork 302
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
Latest version of Remote Containers causes an error when building my devcontainer #7319
Comments
What do you get for |
Sorry, ignore the previous comment, I misread the error message. Could you append |
Here is the Dockerfile you requested:
|
The |
The issue must be in the recently added code, the release of a month ago does not show this issue. |
Here is a remote containers logfile of the version that works. What strikes me as odd is that there is no mention of |
We're having the same issue, using this dockerfile: # [Choice] .NET version: 6.0, 5.0, 3.1, 6.0-bullseye, 5.0-bullseye, 3.1-bullseye, 6.0-focal, 5.0-focal, 3.1-focal
ARG VARIANT=6.0
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:0-${VARIANT}
#Install oc and kubectl client
RUN wget https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/stable/openshift-client-linux.tar.gz \
&& tar -zxvf openshift-client-linux.tar.gz --directory /tmp/ \
&& cp /tmp/oc /tmp/kubectl /usr/local/sbin \
&& chmod +x /usr/local/sbin/oc && chmod +x /usr/local/sbin/kubectl \
&& rm -f /tmp/oc && rm -f /tmp/kubectl && rm -f /tmp/README.md
#Install ReportGenerator
RUN dotnet tool install -g dotnet-reportgenerator-globaltool \
&& dotnet tool install dotnet-reportgenerator-globaltool --tool-path tools \
&& dotnet new tool-manifest --name ReportGenerator \
&& dotnet tool install dotnet-reportgenerator-globaltool \
VSCode Version:1.72.1 |
I had a similar problem. The issue is this line:
Docker may have previously supported a final trailing slash in a build file, but it appears to no longer be supported. (I'm not sure when this happened, but I'm on Docker 20.10.21 and it's no longer supported.) This trailing slash appears to interfere with the following Just remove the slash and it should work:
|
@PaulHiemstra Does it work when you remove the trailing |
@chrmarti Seemed to do it for me! I can build my devcontainer again! Any idea on why that is? What changed between 1.70 and 1.72 that created this problem? |
@chrmarti Can confirm as well. Removing the trailing Here is the error caused by that trailing
@tjdett good find. Running on |
What's this name |
this helped me solve the problem |
I'm also wondering the same thing. Anyone know? |
On |
Just hit this myself using the default generated
|
@akutruff This seems to be a different problem, could you open a new issue for this? |
The latest version of remote containers no longer allows me to build a container that is externally defined in a dockerfile. The issue is fixed by going back to the previous version of the plugin.
Steps to Reproduce:
error.log
Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: