kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch11/set-registry-variables.sh

16 lines
270 B
Bash

#! /bin/sh
echo 'Registry server (blank for Docker Hub):'
read registry
if [ -n "$registry" ]; then
REGISTRY_SERVER=$registry
else
REGISTRY_SERVER='https://index.docker.io/v1/'
fi
echo 'Username:'
read REGISTRY_USER
echo 'Password:'
read -s REGISTRY_PASSWORD