gorush
gorush copied to clipboard
not able to use docker exec shell
[root@localhost ~]# docker exec -it gitlab bash
root@git:/# exit
exit
[root@localhost ~]# docker exec -it gorush bash
OCI runtime exec failed: exec failed: container_linux.go:296: starting container process caused "exec: \"bash\": executable file not found in $PATH": unknown
[root@localhost ~]# docker exec -it gorush /bin/bash
OCI runtime exec failed: exec failed: container_linux.go:296: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory": unknown
Try the alpinetag of image.
$ docker run --name gorush -d appleboy/gorush:alpine
$ docker exec -ti gorush /bin/sh
Gratz @appleboy
Try the
alpinetag of image.$ docker run --name gorush -d appleboy/gorush:alpine $ docker exec -ti gorush /bin/sh
it work!!! you must be a genius!
Please use the linux-amd64 instead of alpine for the latest version.
$ docker run --name gorush -d appleboy/gorush:linux-amd64
$ docker exec -ti gorush /bin/sh