Neeraj Vyas

    Neeraj Vyas

    1 year ago
    Hi all, can someone can share the steps to store flows in my docker-image and use it using docker-hub with kubernetes agent? It will surely help
    Neeraj Vyas

    Neeraj Vyas

    1 year ago
    I will try it.. Thanks @Michael Adkins
    Successfully tagged neo0710/prefect_flow/basic-prefect-etl-flow:latest [2021-02-06 00:57:19+0530] INFO - prefect.Docker | Pushing image to the registry... Traceback (most recent call last):   File "basic-prefect-etl-flow.py", line 19, in <module>     flow.register(project_name='Neo_kube_prefect')   File "/home/hp/.local/lib/python3.6/site-packages/prefect/core/flow.py", line 1675, in register     idempotency_key=idempotency_key,   File "/home/hp/.local/lib/python3.6/site-packages/prefect/client/client.py", line 783, in register     serialized_flow = flow.serialize(build=build) # type: Any   File "/home/hp/.local/lib/python3.6/site-packages/prefect/core/flow.py", line 1450, in serialize     storage = self.storage.build() # type: Optional[Storage]   File "/home/hp/.local/lib/python3.6/site-packages/prefect/storage/docker.py", line 354, in build     self._build_image(push=push)   File "/home/hp/.local/lib/python3.6/site-packages/prefect/storage/docker.py", line 429, in _build_image     self.push_image(full_name, self.image_tag)   File "/home/hp/.local/lib/python3.6/site-packages/prefect/storage/docker.py", line 637, in push_image     raise InterruptedError(line.get("error")) InterruptedError: denied: requested access to the resource is denied I am getting this issue... How can I store my docker credentials?
    Michael Adkins

    Michael Adkins

    1 year ago
    It just uses the docker client; have you tried https://docs.docker.com/engine/reference/commandline/login/ ?
    Neeraj Vyas

    Neeraj Vyas

    1 year ago
    The issue --> : InterruptedError: denied: requested access to the resource is denied was coming because, I was giving extra information with my dockerHubName. There was no issue with login credentials.
    Thanks @Michael Adkins
    Example : registry_url="neo0710/somename", --> GOT ISSUE registry_url="neo0710", --> No issue