gorush icon indicating copy to clipboard operation
gorush copied to clipboard

not able to use docker exec shell

Open xnathanh opened this issue 8 years ago • 4 comments

[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

xnathanh avatar Dec 20 '17 21:12 xnathanh

Try the alpinetag of image.

$ docker run --name gorush -d appleboy/gorush:alpine
$ docker exec -ti gorush /bin/sh

appleboy avatar Dec 23 '17 11:12 appleboy

Gratz @appleboy

marcuxyz avatar Aug 22 '18 03:08 marcuxyz

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!

includevsimport avatar Jan 06 '20 08:01 includevsimport

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

appleboy avatar Jan 06 '20 10:01 appleboy