https://prefect.io logo
Title
k

Karan

10/07/2022, 6:18 PM
Scenario: I have a Docker Image built in GHCR, next I want to schedule this docker image to run every 2 hours. Is Prefect correct option for doing the schedule. If yes how. Unable to find documentation on same.
1
c

Christopher Boyd

10/07/2022, 6:36 PM
What do you want it to do? Docker is just the execution environment
z

Zanie

10/07/2022, 6:41 PM
You’ll need to include a Prefect flow somewhere You can write a workflow that runs the container e.g.
@flow
def run_my_container():
   DockerContainer(image=…., command=[…]).run()
Then you can run this flow on a schedule.
:upvote: 1