strapi-docker icon indicating copy to clipboard operation
strapi-docker copied to clipboard

Ctrl-C does not exit application/container

Open StianOvrevage opened this issue 3 years ago • 3 comments

Using Ctrl-C does not exit/initiate shutdown of the application running inside the container.

StianOvrevage avatar Sep 10 '20 19:09 StianOvrevage

Hi @StianOvrevage, thank you for reporting this issue. Can you please share a bit more details on when you get that behavior ? Are use running an image directly / using docker-compose etc ? Some steps to reproduce would be very helpful

alexandrebodin avatar Oct 12 '20 09:10 alexandrebodin

Sounds like an issue related to usage ENTRYPOINT or CMD command. Container started with "exec" mode will be terminated with Ctrl-C command, but using "shell" mode will not have the same behaviour. Check official entrypoint documentation for more information

iRay avatar Oct 15 '20 14:10 iRay

docker run --init strapi/strapi

fixed the issue for me

ANGkeith avatar May 05 '21 10:05 ANGkeith