mercoledì 9 ottobre 2024

Cron in Docker

E' possibile attivare un crontab all'interno di un docker aggiungendo al Dockerfile i seguenti comandi


RUN apt-get -y install cron 

RUN crontab -l | { cat; echo "0 3 * * * bash /root/mioscript.sh"; } | crontab - 

CMD cron

Nessun commento:

Posta un commento

Montare QNAP su Linux

Lo scrivo qui perche' me lo scordo regolarmente Per montare un disco su un NAS QNAP su Linux si usa  sudo mount -t cifs //192.168.1.66/P...