Hi, can anybody maybe tell me how to setup docker to restart collabora with command, example every 24 hours:
docker run -t -d -p 127.0.0.1:9980:9980 -e ‘domain=cloud\.nextcloud\.com’ --restart always --cap-add MKNOD collabora/code
What, where to add command ?
in that case you could use cron to do that.
* */24 * * * docker stop CONTENER_ID && docker start CONTENER_ID
to get to that file you need to issue:
crontab -u <username who should issue the command> -e