alpinelinux / docker-alpine

Official Alpine Linux Docker image. Win at minimalism!
MIT License
1.04k stars 261 forks source link

crond seems can not handle(or receive) StopSignal when pid 1 #381

Closed bonjour-py closed 3 months ago

bonjour-py commented 3 months ago

my Containerfile:

ENTRYPOINT [ "/entrypoint.sh" ]
CMD ["crond", "-f", "-L", "/dev/stdout"]

my entrypoint.sh :

echo "$CRON $COMMAND" | tee /etc/crontabs/root
exec "$@"

when i run it podman -it thisimage, the container can not respose ctrl+C or any ctrl+*
when i use docker stop the container, is says StopSignal SIGTERM failed to stop container

i have no idea what happeds , could anybody help? thx

bonjour-py commented 3 months ago

seems something wrong with podman