doodle icon indicating copy to clipboard operation
doodle copied to clipboard

OCI runtime create failed: container_linux.go:345: starting container process caused...

Open tianakack opened this issue 6 years ago • 3 comments

My OS:windows10 My Docker:v2.1.0.1(37199) with linux containers

The error message: PS C:...\docker\doodle\cheers2019> docker build -t tianjun9/cheers2019 . Sending build context to Docker daemon 12.8kB Step 1/9 : FROM golang:1.11-alpine AS builder ---> e116d2efa2ab Step 2/9 : RUN apk add --no-cache git ---> Using cache ---> 85616f85377b Step 3/9 : RUN go get github.com/pdevine/go-asciisprite ---> Running in 777d75acad82 OCI runtime create failed: container_linux.go:345: starting container process caused "exec: "/bin/sh": stat /bin/sh: no such file or directory": unknown PS C:...\docker\doodle\cheers2019>

I need your help! Thank you 10000000 times!

tianakack avatar Sep 01 '19 17:09 tianakack

@tianjun9 sorry for the late reply. Did you end up sorting this out? The closest I can come to finding something similar is: https://github.com/moby/moby/issues/31702

Do you have any existing docker images?

pdevine avatar Oct 02 '19 23:10 pdevine

hi , i have created docker image , while run the command with /bin/bash it through errors. [root@xyzdemo]# docker run -itd example2 /bin/bash 7c3da36fc302911f1e3d191612f7ad95c6531394350f293ca0e2c4b088891a80 docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: "/bin/bash": stat /bin/bash: no such file or directory": unknown.

rajeshsoro avatar Oct 22 '19 12:10 rajeshsoro

@rajeshsoro For a docker image created from docker/doodle, there is only a single executable binary which is located inside of the image. There isn't a copy of bash inside of it that you can run. Normally you would start the image with the command: # docker run -it --rm example2

pdevine avatar Oct 22 '19 18:10 pdevine