Tekki / docker-mojolicious

:whale: Docker image for Mojolicious
Artistic License 2.0
14 stars 3 forks source link

Q: User defined signal 2 #4

Closed KES777 closed 3 years ago

KES777 commented 3 years ago

Does this work well

$ docker container run -d --rm -v "$(pwd):/usr/src/app" -p 8080:8080 tekki/mojolicious hypnotoad -f script/my_app

when host server got hard reset?

In my scenario at that case when I do docker start my_container I see at logs:

 [prod] User defined signal 2

and container exit

Tekki commented 3 years ago

If 'hard reset' means something like a power failure then it depends on your system how it will behave. Do you have this error message since such an event? Is the rest of Docker running fine?

KES777 commented 3 years ago

I have asked sri. He says that: hypnotoad is not meant for container. I am switched to prefork as this shown by app generate dockerfile command

Tekki commented 3 years ago

I have asked sri. He says that...

So I can expect a pull request to improve the readme, @KES777 ?

KES777 commented 3 years ago

use this command to generate example Dockerfile: https://docs.mojolicious.org/Mojolicious/Command/Author/generate/dockerfile