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

后端 未结 4 2055
萌比男神i
萌比男神i 2021-02-14 22:57

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条回答
  •  北海茫月
    2021-02-14 23:24

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

提交回复
热议问题