|
@@ -38,10 +38,6 @@ done
|
|
sed -i '/registry.svicloud.com/d' /etc/hosts
|
|
sed -i '/registry.svicloud.com/d' /etc/hosts
|
|
echo "192.168.100.23 registry.svicloud.com" >>/etc/hosts
|
|
echo "192.168.100.23 registry.svicloud.com" >>/etc/hosts
|
|
|
|
|
|
-# comment to use local repo
|
|
|
|
-sed -i "/^[^#].*registry.svicloud.com/s/^/#/" /etc/hosts
|
|
|
|
-
|
|
|
|
-
|
|
|
|
# local repository, so no proxy allowed
|
|
# local repository, so no proxy allowed
|
|
if systemctl show --property=Environment docker | grep -q HTTP_PROXY; then
|
|
if systemctl show --property=Environment docker | grep -q HTTP_PROXY; then
|
|
mkdir -p /etc/systemd/system/docker.service.d/
|
|
mkdir -p /etc/systemd/system/docker.service.d/
|