keymetrics / docker-pm2

🐳 Official Docker Image for PM2 runtime
https://hub.docker.com/r/keymetrics/pm2
MIT License
476 stars 60 forks source link

oci runtime error: container_linux.go:247 #61

Open spursy opened 6 years ago

spursy commented 6 years ago

Error:

ubuntu@ip-172-18-16-104:~$ sudo docker run -it keymetrics/pm2 /bin/bash
Unable to find image 'keymetrics/pm2:latest' locally
latest: Pulling from keymetrics/pm2
1160f4abea84: Pull complete
3ec5cae38735: Pull complete
8936ea0e8ba7: Pull complete
bb97665bd848: Pull complete
Digest: sha256:ebc9a08b9f6181ac876ac9153523911eac163177cb2e379950282118af4273c0
Status: Downloaded newer image for keymetrics/pm2:latest
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".

I use the followed command:

sudo docker run -it keymetrics/pm2 /bin/bash

my system is : ubuntu 16

simonepri commented 5 years ago

I don't think the bash shell is installed on alpine linux.

guiofsaints commented 5 years ago

Hello @spursy

Try it:

sudo docker run -it keymetrics/pm2 ash

Alpine uses ash and not bash.