Hi there, I had success with pushing a docker imag...
# prefect-getting-started
w
Hi there, I had success with pushing a docker image to a public docker registry. However, pushing the identical image to a private docker registry with a similar yaml file (credentials added) led to the following error message. A docker registry credential block was referenced. How to get through the private docker registry authentication process?
File "/home/user/miniconda3/lib/python3.11/site-packages/prefect_docker/deployments/steps.py", line 334, in push_docker_image
username=credentials.get("username") AttributeError: 'str' object has no attribute 'get'
Here is the push clause in the yaml.
Copy code
push:
- prefect_docker.deployments.steps.push_docker_image:
    requires: prefect-docker>=0.3.1
    image_name: '{{ build_image.image_name }}'
    tag: '{{ build_image.tag }}'
    credentials: '{{ prefect.blocks.docker-registry-credentials.dev-registry }'