Create a secret for a registry
#!/bin/bash
$ oc create secret docker-registry nexus.registry \
--docker-server=https://repo-url \
--docker-username=user \
--docker-password=password \
--docker-email=email
Now link the secret
oc secrets link default nexus.registry --for=pull
Docker config
oc create secret generic all.registry --from-file=.dockerconfigjson=/home/lzuccarelli/.docker/config.json --type=kubernetes.io/dockerconfigjson
Config map from file
oc create configmap configcontent --from-file=/home/lzuccarelli/.docker/config.json