When I exec the commmand, it occur this error
docker run -it --entrypoint=/bin/bash ld_mmdet:2.4.0 /bin/bash
docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory".
then I inspect the images, and found the cmd is null, like this
"ContainerConfig": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": null,
"Cmd": null,
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
So, is there any solution to resolve this? I have try the methods as follows:
- using /bin/sh or /bash instead of /bin bash,NOT WORK
- using docker run -it --entrypoint=/bin/bash ld_mmdet:2.4.0 /bin/bash,NOT WORK