Skip to content

Commit

Permalink
Merge pull request #58 from ashcrow/RHBZ-1728062
Browse files Browse the repository at this point in the history
rhcos-toolbox: Use default authfile on pull
  • Loading branch information
cgwalters committed Jul 17, 2019
2 parents a529538 + 413f83f commit b623dc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rhcos-toolbox
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ image_runlabel() {
}

image_pull() {
if ! sudo podman pull "$TOOLBOX_IMAGE"; then
read -r -p "Would you like to authenticate to registry: '${REGISTRY}' and try again? [y/N] "
if ! sudo podman pull --authfile /var/lib/kubelet/config.json "$TOOLBOX_IMAGE"; then
read -r -p "Would you like to manually authenticate to registry: '${REGISTRY}' and try again? [y/N] "

if [[ $REPLY =~ ^([Yy][Ee][Ss]|[Yy])+$ ]]; then
sudo podman login "${REGISTRY}"
Expand Down

0 comments on commit b623dc3

Please sign in to comment.