Skip to content

git clone and ssh inside windows container #1737

Closed
@paul-grozav

Description

@paul-grozav

Setup

  • I am using git for windows version 2.17.1 64-bit
C:\>git --version --build-options
git version 2.17.1.windows.2
cpu: x86_64
built from commit: a60968cf435951d9411fc0f980a2e362d5cccea2
sizeof-long: 4
C:\>cmd.exe /c ver

Microsoft Windows [Version 10.0.14393]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
C:\>type "C:\Program Files\Git\etc\install-options.txt"
Editor Option: VIM
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Enabled


C:\>type "C:\Program Files (x86)\Git\etc\install-options.txt"
The system cannot find the path specified.

C:\>type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
The system cannot find the path specified.
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

** Yes, I'm running in Docker Community Edition Version 18.03.1-ce-win65 (17513) Channel: stable , commit 93354b3**

C:\Users\Administrator>docker version
Client:
 Version:      18.03.1-ce
 API version:  1.37
 Go version:   go1.9.5
 Git commit:   9ee9f40
 Built:        Thu Apr 26 07:12:48 2018
 OS/Arch:      windows/amd64
 Experimental: false
 Orchestrator: swarm

Server:
 Engine:
  Version:      18.03.1-ce
  API version:  1.37 (minimum version 1.24)
  Go version:   go1.9.5
  Git commit:   9ee9f40
  Built:        Thu Apr 26 07:21:42 2018
  OS/Arch:      windows/amd64
  Experimental: false

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

**

  • I've been trying to run the executable from cmd.exe and powershell, but the result is the same. Exit code 0, and there is no other output on stdout.
    **

  • What commands did you run to trigger this issue? If you can provide a
    Minimal, Complete, and Verifiable example
    this will help us understand the issue.

C:\Program Files\Git\bin>bash

C:\Program Files\Git\bin>sh

C:\Program Files\Git\usr\bin>.\ls.exe

C:\Program Files\Git\usr\bin>.\whoami.exe

C:\Program Files\Git\usr\bin>ssh-keyscan github.com

C:\Program Files\Git\usr\bin>

Any Linux command like bash, ls, ssh, any of these .exe files return the exit code 0 and print nothing else. I wanted to clone a project over ssh, but I think it's not working because of this problem.

  • What did you expect to occur after running these commands?

** I was expected to have them work as they work outside of docker, on a windows machine. **

  • What actually happened instead?

** they returned exit code 0 and printed nothing to stdout/console **

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

** insert URL here **

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