How can I start a Docker container that is going to stop after being executed?

I have a Docker container that works as a service to send data to my smartphone. I need this Docker container to be build just once and the afterwards, this container should be triggered by Docker start.

After the application is finished, nothing should happen or work. Then, the next day, the container should be started again (not build) and then the cycle continues.

Is this possible with Fly.io? I deployed the application and I can run it using “flyctl apps restart” but I don’t know if is a better way of doing this.

It sounds like you might be looking for our scheduled machines New feature: Scheduled machines

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.