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
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...
Nessun commento:
Posta un commento