singularityhub / docker2singularity

A docker image for converting docker images to singularity images.
https://quay.io/repository/singularity/docker2singularity?tab=tags
MIT License
282 stars 36 forks source link

Error response from daemon: OCI runtime create failed: container_linux.go:370 #95

Open OliiverHu opened 3 years ago

OliiverHu commented 3 years ago

Hi, I was trying to convert a local docker image(xxx.tar) to singularity one, but I got the following error on my linux server. I am new to docker and might make some really basic mistakes since I failed to find any information related to this output. image

docker: Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "tail": executable file not found in $PATH: unknown.

Any info on how to convert a docker image to singularity image would also be highly appreciated. And if there is any additional information I could provide to help, please just let me know. Thanks.

vsoch commented 3 years ago

The way that we keep the container started and running is with tail (see https://github.com/singularityhub/docker2singularity/blob/master/docker2singularity.sh#L131), so you can:

  1. ensure tail is installed in your Docker container before conversion
  2. edit the docker2singularity.sh and rebuild the docker2singularity container to use another method to keep the container running
  3. test a different container entirely that has tail.