Skip to content

Instantly share code, notes, and snippets.

@dlbewley
Created March 1, 2021 17:21
Show Gist options
  • Save dlbewley/920b39c43698056dd58d7f78017b3b90 to your computer and use it in GitHub Desktop.
Save dlbewley/920b39c43698056dd58d7f78017b3b90 to your computer and use it in GitHub Desktop.
Add Docker Hub Credentials as OpenShift Pull Secret
# https://developers.redhat.com/blog/2021/02/18/how-to-work-around-dockers-new-download-rate-limit-on-red-hat-openshift/
# https://docs.docker.com/docker-hub/access-tokens/
oc create secret docker-registry docker \
--docker-server=docker.io \
--docker-username=<username> \
--docker-password=<password> \
--docker-email=<email>
oc secrets link default docker --for=pull
oc new-app <username>/<image> --source-secret=docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment