Hi all, can someone can share the steps to store f...
# ask-community
n
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
n
I will try it.. Thanks @Zanie
Successfully tagged neo0710/prefect_flow/basic-prefect-etl-flow:latest [2021-02-06 005719+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?
z
It just uses the docker client; have you tried https://docs.docker.com/engine/reference/commandline/login/ ?
n
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 @Zanie
Example : registry_url="neo0710/somename", --> GOT ISSUE registry_url="neo0710", --> No issue