# 打开overlayfs
tee /etc/modules-load.d/overlay.conf <<-'EOF'
overlay
EOF

# 调整docker启动参数
mkdir -p /etc/systemd/system/docker.service.d && sudo tee /etc/systemd/system/docker.service.d/override.conf <<- EOF
[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon --storage-driver=overlay 
EOF

yum install -y ipset unzip

echo '
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
' >> /etc/sysctl.conf

sysctl -p
groupadd nogroup
mkdir -p /opt/mesosphere/bin
echo '
#!/bin/bash
#IPDETECT=`ifconfig |grep en | grep inet | grep -v 127.0.0.1 | grep -v inet6 | awk '{print $2}'|tr -d "addr:"`
IPDETECT=`ip a | grep en | grep inet | grep 192.168 | awk '{print $2}' | awk -F\/ '{print $1}'`
echo "$IPDETECT"


' >> /opt/mesosphere/bin/detect_ip
cd /opt
rm -rf dcos_install_tmp
mkdir -p dcos_install_tmp
rsync -avzP soft.ops.ac.cn::ops1970/dcos/1.7/dcos-install.tar .
tar -xf dcos-install.tar -C dcos_install_tmp
cd dcos_install_tmp
bash dcos_install.sh slave
bash dcos_install.sh slave-public
bash dcos_install.sh master
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""