OCI runtime create failed: run create failed: unable to start container process: exec: “env”: executable file not found in $PATH: unknown
The above error occurs when running the docker container.
Reason:
The image given to me by others has been decompressed, and I was told that I used load to load the image.
docker load < ***.tar
The command reports an error
The error message is: open/var/lib/locker/tmp/locker import - **************/repositories: no such file or directory.
So I used docker import to load the image, and surprisingly it loaded successfully, and there was no problem of 0kb as mentioned on the internet.
docker import ***.tar docker:v1
But there was a problem at runtime.
docker run
The following error message appears:
Error response from daemon: failed to create shim task: OCI runtime create failed: run create failed: disable to start container process: exec: "env": executable file not found in $PATH: unknown
Solution:
tar -xvf ***.tar
After decompression, load the image again. Success!