Scenario: I have a Docker Image built in GHCR, n...
# ask-community
k
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
What do you want it to do? Docker is just the execution environment
z
You’ll need to include a Prefect flow somewhere You can write a workflow that runs the container e.g.
Copy code
@flow
def run_my_container():
   DockerContainer(image=…., command=[…]).run()
Then you can run this flow on a schedule.
upvote 1