-3

I start with

docker run rasa/rasa

as tutorials from Youtube suggest.

but when I do

docker ps

it shows empty list of containers. I thought run command should start container processing. Why is doesnt start? What am I doing wrong?

Also

docker ps -a

shows me a giant list of exited containers, but I didn't exit them.

enter image description here

leopal
  • 4,711
  • 1
  • 25
  • 35
  • Seems like this image runs `rasa --help` by default, which just prints the help message and exits. – tkausl Jan 14 '20 at 11:46
  • Try to read the logs of the containers so you can check why is the status `Exited` – Carlos Jan 14 '20 at 11:55
  • @Carlos I tried docker logs ec9d02a3b9f1, but it only showed me the same help message from rasa – Ekaterina Melnikova Jan 14 '20 at 12:07
  • 1
    A container exits when its entrypoint/cmd is completed. Thus the `rasa` container executes `rasa --help` prints some help messages and when this is finished, it exits normally(`0` as exit code). – leopal Jan 14 '20 at 12:10
  • Does this answer your question? [Why docker container exits immediately](https://stackoverflow.com/questions/28212380/why-docker-container-exits-immediately) – leopal Jan 14 '20 at 12:15

1 Answers1

0

With command docker ps -a command shows you all the containers running/stopped/exited. These are the containers that you tried to run but somehow due to some internal errors those container got stopped and are not running anymore and it shows the status exited(not running).

With command docker ps, it shows only running containers. As no containers are running on your machine thats why it is not showing anything. It requires -a argument to show you the all containers like docker ps -a (Show all containers).

M Hamza Razzaq
  • 432
  • 2
  • 7
  • 15