Skip to content

Commit

Permalink
bots: Add registry IP to insecure-registry options for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
petervo committed Aug 2, 2017
1 parent c5b6e3e commit 6d3c995
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bots/images/scripts/openshift.setup
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ oc create -f /tmp/imagestream.json
# Get registry address and configure docker for it
address="$(oc get services docker-registry | tail -n1 | awk -v N=2 '{print $N}')"
echo "$address registry registry.cockpit.lan" >> /etc/hosts
echo "INSECURE_REGISTRY='--insecure-registry registry:5000 --insecure-registry $address'" >> /etc/sysconfig/docker

# Log in as another user
printf "scruffy\r\nscruffy\r\n" | oc login
Expand Down

0 comments on commit 6d3c995

Please sign in to comment.