search

Home  >  Q&A  >  body text

linux - docker中的crontab,重启之后没了怎么办?

docker中的crontab,
运行了一个定时脚本
重启之后
crontab命令没了
crontab -e 内容没了

怎么办?

伊谢尔伦伊谢尔伦2819 days ago812

reply all(3)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 13:44:41

    Write it into dockerfile and try it

    reply
    0
  • 迷茫

    迷茫2017-04-17 13:44:41

    Write a file, then add an add command in dockerfile to add this file to your docker

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 13:44:41

    There must be

    written in the dockerfile

    reply
    0
  • Cancelreply