Issues running cron in Docker on different hosts

前端 未结 4 1222
谎友^
谎友^ 2020-12-15 03:56

Im trying to get a docker container running to mange my cronjobs

im running a very simple cron as a test in a docker container using centOS 6.5 base



        
4条回答
  •  -上瘾入骨i
    2020-12-15 04:31

    the base Docker containers don't start services like cron - they only start what you specify in the ENTRYPOINT/CMD

    some 'fatter' containers use things like supervisord to start services - but where possible, its more maintainable to separate services into different containers and share data using with volume containers, or --link

提交回复
热议问题