Created
March 1, 2021 17:21
-
-
Save dlbewley/920b39c43698056dd58d7f78017b3b90 to your computer and use it in GitHub Desktop.
Add Docker Hub Credentials as OpenShift Pull Secret
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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