Skip to content

Attach Shell does not work when using git-bash #462

Closed
@ghost

Description

In my VSCode settings, I have changed my terminal to use Git-bash:

"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",

However, now when I attempt to use the Attach Shell command, I get the following error:

docker exec -it xxxyyzzzz
f20 /bin/sh
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"C:/Program Files/Git/usr/bin/sh\": stat C:/Program Files/Git/usr/bin/sh: no such file or directory": unknown

I attempted the workaround suggested here but that didn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions