Windows 10 + Docker: /usr/bin/sh: /usr/bin/sh: cannot execute binary file
Summary
Build fails with "cannot execute binary file" after clone
Steps to reproduce
Try executing a build
Actual behavior
Build fails with /usr/bin/sh: /usr/bin/sh: cannot execute binary file
Expected behavior
Display completed build (environment of the container)
Relevant logs and/or screenshots
Dockerfile: https://hub.docker.com/r/jameshclrk/parmetis-docker-image
.gitlab-ci.yml:
image: jameshclrk/parmetis-docker-image:latest
stages:
- build
test-build:
stage: build
script: env
Running with gitlab-ci-multi-runner 1.10.4 (b32125f)
Using Docker executor with image jameshclrk/parmetis-docker-image:latest ...
Pulling docker image jameshclrk/parmetis-docker-image:latest ...
Running on runner-4b77d5d4-project-102-concurrent-0 via HOSTNAME...
Fetching changes...
HEAD is now at 9c5f929 Gitlab CI
Checking out 9c5f9291 as master...
Skipping Git submodules setup
/usr/bin/sh: /usr/bin/sh: cannot execute binary file
/usr/bin/sh: /usr/bin/sh: cannot execute binary file
ERROR: Build failed: exit code 126
Environment description
Custom GitLab instance, registered the runner with the project
Used GitLab Runner version
Version: 1.10.4
Git revision: b32125f
Git branch: 1-10-stable
GO version: go1.7.5
Built: Tue, 31 Jan 20
OS/Arch: windows/amd64