Home >Backend Development >PHP Tutorial >Can you help me check the cron execution problem under docker?

Can you help me check the cron execution problem under docker?

WBOY
WBOYOriginal
2016-10-10 11:56:211312browse

This is a container running php-fpm, debian's jessie image, started by the startup command cron&&php-fpm. I exec into the container and see that there is no log at all. Using ps aux, I can see that the crond process is running. And if I manually execute the command in cron, I can see the log and try restarting the container.
Can you help me check the cron execution problem under docker?

Reply content:

This is a container running php-fpm, debian's jessie image, started by the startup command cron&&php-fpm. I exec into the container and see that there is no log at all. Using ps aux, I can see that the crond process is running. And if I manually execute the command in cron, I can see the log and try restarting the container.
Can you help me check the cron execution problem under docker?

https://www.v2ex.com/t/310078...

When I come to segmentfault to ask questions, why do I solve them myself?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn