Tinh
02/26/2025, 1:27 PMfrom prefect import flow
from prefect.deployments.runner import DockerImage
@flow(log_prints=True)
def my_local_docker():
print("Hello from Docker!")
if __name__ == "__main__":
my_local_docker.deploy(
name="my-local-docker-deployment",
work_pool_name="docker",
image=DockerImage(
name="readwrite",
tag="1.2-slim-js"
),
push=False,
build=False
)
But the flow is crashed and here is the error. Can anyone else interprete this for me and how to fix this? Many thanks
docker.errors.APIError: 400 Client Error for <http+docker://localhost/v1.47/containers/4ef02225db77e2c78f90dddd3002b34439661b77a6ef88d000711c112ce46105/start>: Bad Request ("failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: exec: "prefect": executable file not found in $PATH: unknown")