-
Notifications
You must be signed in to change notification settings - Fork 700
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
Unhandled exception: An error occurred trying to start process 'bash' with working directory '/app'. No such file or directory #1815
Comments
A workaround might be to set @BDisp I see BashRunner is used for some clipboard stuff and here to detect WSL? Do you think its worth being more conservative about that e.g. detecting when those commands are failing and turning off those features at runtime? Looks like that pattern is already in place for the clipboard logic but is missing here? We might also want a private flag so that when xclip or BashRunner fails we mark it as not working and don't try again? |
Yes. It seems that |
I tried both |
It has nothing to do with it. It will always give the same issue. I never managed to use |
I tried again today with 1.8.2 nuget release and I am still getting the same error. |
Can you share your ambient to check how you are getting the error, please? |
If you mean the reproduction steps, they are the same as in my first post (the repo has been updated with newer .csproj file). |
At least doesn't give the error but only black and white. It's needed to install more stuffs to the image. |
This Dockerfile works: FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine3.16-amd64 AS build
WORKDIR /source
COPY src/. .
RUN dotnet publish -c release -r linux-musl-x64 --self-contained -o /app -p:PublishSingleFile=true -p:EnableCompressionInSingleFile=true
FROM alpine:3.16
RUN apk upgrade --no-cache && apk add --no-cache libgcc libstdc++ icu-libs ncurses && apk update && apk add bash
ENV TERM=xterm-256color
WORKDIR /app
COPY --from=build /app ./ There is only extras output after quit the app, because it isn't restoring the terminal defaults. But this only happens with this image. If you try on WSL or Linux VM this doesn't happens. |
Thank you very much. |
Describe the bug
I am trying to get Terminal.GUI based app to run on docker. Host is Ubuntu 20.04 under WSL, and target is Alpine Linux. I get error about bash, which I assume is not required with Alpine Linux.
The error is:
To Reproduce
docker build .
docker image ls
and get the image iddocker run -it IMAGEID
./WhisperDragon_CLI
Expected behavior
No crash / errors
The text was updated successfully, but these errors were encountered: