Skip to content

Commit

Permalink
- Don't overwrite system default docker options - during adding OS
Browse files Browse the repository at this point in the history
insecure registries.
- Flush iptables after disabling firewalld
  • Loading branch information
Marek Skalický authored and pkubatrh committed Nov 29, 2017
1 parent 95b92ea commit 8531e03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test-lib-openshift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,13 @@ function ct_os_cluster_up() {
local dir="${1:-$(mktemp -d /var/tmp/openshift/os-data-XXXXXX)}" ; shift || :
local is_public="${1:-'false'}" ; shift || :
if ! grep -qe '--insecure-registry.*172\.30\.0\.0' /etc/sysconfig/docker ; then
sed -i '/OPTIONS=.*/c\OPTIONS="--selinux-enabled --insecure-registry 172.30.0.0/16"' /etc/sysconfig/docker
sed -i "s|OPTIONS='|OPTIONS='--insecure-registry 172.30.0.0/16 |" /etc/sysconfig/docker
fi
systemctl restart docker

systemctl stop firewalld
setenforce 0
iptables -F

local cluster_ip="127.0.0.1"
[ "${is_public}" == "true" ] && cluster_ip=$(ct_get_public_ip)
Expand Down

0 comments on commit 8531e03

Please sign in to comment.