Merge pull request #320 from f-higashi/docker_multinode_centos
Fix docker options setting in CentOS
This commit is contained in:
@@ -176,7 +176,7 @@ start_k8s(){
|
|||||||
;;
|
;;
|
||||||
centos)
|
centos)
|
||||||
DOCKER_CONF="/etc/sysconfig/docker"
|
DOCKER_CONF="/etc/sysconfig/docker"
|
||||||
echo "OPTIONS=\"\$OPTIONS --mtu=${FLANNEL_MTU} --bip=${FLANNEL_SUBNET}\"" | tee -a ${DOCKER_CONF}
|
sed -i "/^OPTIONS=/ s|\( --mtu=.*\)\?'$| --mtu=${FLANNEL_MTU} --bip=${FLANNEL_SUBNET}'|" ${DOCKER_CONF}
|
||||||
if ! command_exists ifconfig; then
|
if ! command_exists ifconfig; then
|
||||||
yum -y -q install net-tools
|
yum -y -q install net-tools
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ start_k8s() {
|
|||||||
case "${lsb_dist}" in
|
case "${lsb_dist}" in
|
||||||
centos)
|
centos)
|
||||||
DOCKER_CONF="/etc/sysconfig/docker"
|
DOCKER_CONF="/etc/sysconfig/docker"
|
||||||
echo "OPTIONS=\"\$OPTIONS --mtu=${FLANNEL_MTU} --bip=${FLANNEL_SUBNET}\"" | tee -a ${DOCKER_CONF}
|
sed -i "/^OPTIONS=/ s|\( --mtu=.*\)\?'$| --mtu=${FLANNEL_MTU} --bip=${FLANNEL_SUBNET}'|" ${DOCKER_CONF}
|
||||||
if ! command_exists ifconfig; then
|
if ! command_exists ifconfig; then
|
||||||
yum -y -q install net-tools
|
yum -y -q install net-tools
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user