Hi folks. how are you? This is my first project u...
# ask-community
l
Hi folks. how are you? This is my first project using prefect and I am having trouble to make it work.. Basically, all I wanted was for prefect to use the Dockerfile in the folder and build an image every time it runs my deployment. But I keep getting this error:
Copy code
docker.errors.ImageNotFound: 404 Client Error for <http+docker://localhost/v1.44/images/create?tag=latest&fromImage=mongo-dump-docker>: Not Found ("pull access denied for mongo-dump-docker, repository does not exist or may require 'docker login': denied: requested access to the resource is denied")
Here is my file.. any help is very appreciated..
Copy code
# Generic metadata about this project
name: mongo-dump-jsonl
prefect-version: 2.14.16

# build section allows you to manage and build docker images
build:
- prefect_docker.deployments.steps.build_docker_image:
    requires: prefect-docker>=0.3.1
    id: build-image
    dockerfile: Dockerfile
    image_name: mongo-dump-docker
    tag: latest

pull:
- prefect.deployments.steps.set_working_directory:
    directory: /usr/src/app

# the deployments section allows you to provide configuration for deploying flows
deployments:
- name: mongo-dump-docker
  version: null
  tags: []
  description: null
  entrypoint: mongodb_dump_jsonl.py:run_flow
  parameters: {}
  work_pool:
    name: docker-pool
    work_queue_name: null
    job_variables:
      image: '{{ build-image.image }}'
  schedule: null
  is_schedule_active: true