Hello everyone, I'm trying to get a deployment to ...
# ask-community
m
Hello everyone, I'm trying to get a deployment to a docker worker pool to work, but I'm getting the following error:
Copy code
prefect.utilities.dockerutils.BuildError: manifest for prefecthq/prefect:3.0.11-python3.11 not found: manifest unknown: manifest unknown
The deploy call looks like this:
Copy code
my_function.deploy(
        name=deployment_name,
        work_pool_name="my-docker-pool",
        image="my-first-deployment-image:tutorial",
        push=False,
        job_variables={
            "image_pull_policy": "Never",
            "auto_remove": True,
            "env": {
                "PREFECT_API_URL": "<http://host.docker.internal:4200/api>",
                "PREFECT_SERVER_API_HOST": "0.0.0.0",
            },
        },
    )
I can provide further information as required, but I am unsure where to start looking. This was working well with prefect 2. Notice that it is not my custom image that it does not found, but an underlying prefect one
r
Could it be that it doesn't find your Dockerfile?
m
It has issue with the prefect docker image it seems, not my custom image. If I add build=False, it actually runs without issues.
n
3.0.11 has not been released, 3.0.10 is the latest prefect version
manifest unknown
this means "I can't find that image" which makes sense
💡 1
you can find the valid tags here
m
That's what I gathered, yet, I'm not setting the version myself to 3.0.11 so it must be picking it up by mistake somewhere else and I couldn't find a way to overwrite it with the correct version
n
oh, interesting. can you share the dockerfile you used to build
my-first-deployment-image:tutorial
?
m
The Dockerfile with which I'm running the deploy function above is:
Copy code
FROM python:3.11 as base

FROM base as docker
RUN apt-get update && \
    apt-get install -qy curl && \
    curl -sSL <https://get.docker.com/> | sh

FROM docker as app
WORKDIR /app
RUN pip install httpx prefect-client prefect-docker
COPY ./src .
(essentially a docker-outside-docker setup) But dockerfile for
my-first-deployment-image:tutorial
is simpler:
Copy code
FROM python:3.11 as base
RUN pip install prefect
WORKDIR /extraction
COPY ./* .
(which I assume could have used an install of prefect-client only) These work without problem when setting build to false and building the image myself, so there might be something there
n
thank you! it seems like when we build the image on your behalf, we are not handling the nightly `dev` releases properly when selecting an image tag we'll get that fixed
m
That makes sense. Glad I could contribute a tiny bit to the library. Thanks for the follow-through and all the work you guys do!
catjam 1