Docker Rasa server in detached mode

I am able to start Rasa server docker container in interactive mode.

docker exec -it --volume ${pwd}:/apps docker.io/rasa/Rasa:latest init 

However, how can I start it in detached mode and keep it running, so that the init step followed by train etc can be done later by different users. I tried overriding

ENTRYPOINT to "tail -f dev>null" 

but this raises an error.

Hey @jackpa99 . Can you share the error log with me?

docker run --rm --name rasa-ja -d --entrypoint="tail -f /dev/null"  <corporate-artifactory-redacted-from-here>/rasa/rasa:1.10.8-full
/usr/bin/docker-current: Error response from daemon: oci runtime error: container_linux.go:235: starting container process caused "exec: \"tail -f /dev/null\": stat tail -f /dev/null: no such file or directory".

Actually solved it by selecting --entrypoint /bin/bash

1 Like