Crontab qui se lance pas dans mon container

pinto-zacharie 10/12/2025
RÉSOLU
pinto-zacharie
Auteur Actif
Avatar de pinto-zacharie
pinto-zacharie
Auteur Actif

hello j'ai installé cron dans mon image debian mais mes jobs se lancent jamais

* * * * * root echo "test" >> /var/log/cron.log

quand je check les process cron tourne bien pourtant

10/12/2025 à 20:05

3 commentaires

cron a besoin d'un environnement shell complet. vérifie tes paths ou utilise des chemins absolus

11/12/2025 à 15:10
bertrand-dubois
Membre Actif
Avatar de bertrand-dubois
bertrand-dubois
Membre Actif

dans un container cron tourne souvent en arrière-plan et finit par se perdre. utilise plutôt un entrypoint qui foreground le process ou check supervisord

Modifié le 23/05/2026 à 16:20
pinto-zacharie
Auteur Actif
Avatar de pinto-zacharie
pinto-zacharie
Auteur Actif

j'ai fini par passer sur un sidecar k8s avec un cronjob c'est plus propre

13/12/2025 à 05:00

Laisser une réponse

Vous devez être connecté pour poster un message !

Rejoindre la communauté

Recevoir les derniers articles gratuitement en créant un compte !

S'inscrire
An Error Occurred: Internal Server Error

Oops! An Error Occurred

The server returned a "500 Internal Server Error".

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.