How can I run a docker container and commit the changes once a script completes?

后端 未结 4 740
南旧
南旧 2021-02-14 23:01

I want to set up a cron job to run a set of commands inside a docker container and then commit the changes to the docker image. I\'m able to run the container as a daemon and ge

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-14 23:43

    Run it in the foreground, not as daemon. When it ends the script that launched it takes control and commits/push it

提交回复
热议问题