This works for me on CodeFresh, as I show here. I wonder if you are using your registry password however, when for the -p
flag you might need to use a token instead.
I don’t know if this varies from registry to registry. Are you using a hosted registry like Docker Hub?