Get a pull secret from https://cloud.openshift.com/clusters/install.
Copy a part of the secret that looks like
"quay.io":{"auth":"...","email":"..."}
and add it to your ~/.docker/config.json.
You also will need credentials for registry.svc.ci.openshift.org: