Docker Community Forums

Share and learn in the Docker community.

Docker container exit immediately after creation


(Phang) #1

I create an docker container, and it exit immediately after creation.
$ docker run -t -d --name webserver-app webserver

The out put of $ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8ffa543e2a49 webserver “/bin/sh -c '[“/us…” 18 seconds ago Exited (127) 17 seconds ago webserver-app
3d5c0bb33219 my-php-app “docker-php-entryp…” 2 hours ago Exited (0) 2 hours ago

$ docker logs b76b422af950
/bin/sh: [“/usr/sbin/httpd”,: No such file or directory