Reputation: 17
My gradle build is failing when trying to run on a docker container.
Could not build image: oci runtime error: container_linux.go:265: starting container process caused "exec: \"/bin/sh\": stat /bin/sh: no such file or directory"
docker version
Client:
Version: 17.09.1-ce
API version: 1.32
Go version: go1.8.3
Git commit: 19e2cf6
Built: Thu Dec 7 22:24:48 2017
OS/Arch: linux/amd64
Server:
Version: 17.09.1-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: 19e2cf6
Built: Thu Dec 7 22:23:29 2017
OS/Arch: linux/amd64
Experimental: false
Upvotes: 0
Views: 677
Reputation: 1323793
Assuming that the docker Gradle image (whose Dockerfile points to AdoptOpenJDK/openjdk-docker
) includes a /bin/sh, the error message might comes from issue 1396
From this comment, assuming you don't have any data issue from a "work in progress", this should be enough:
docker system --prune --all
Upvotes: 1