Skip to content

git\usr\bin binaries do not run in windows container #5

@akomakom

Description

@akomakom

None of the executables under c:\Program Files\git\usr\bin** work in docker for me, including ssh.exe
Do they work for anyone else?

ENV

  • Windows Server 2016
  • Docker version 17.06.2-ee-16, build 9ef4f0a
  • latest image as of today

Error

>docker run --rm -it --entrypoint cmd jonathank/jenkins-jnlp-slave-windows
C:\>"c:\Program Files\git\cmd\git.exe"  --version
git version 2.15.1.windows.2

C:\>"c:\Program Files\git\usr\bin\ssh.exe"

C:\>"c:\Program Files\git\usr\bin\ls.exe"

C:\>echo %ERRORLEVEL%
-1073741511

Same for every binary in that directory.
Is this my issue or a global issue?

Due to this, Jenkins cannot check out using system git because ssh.exe doesn't work. I am using system git globally in Jenkins (and, as a consequence, in docker slaves) because of issues with JGit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions