For avoiding docker-ce installation failed, we specify the apt to
ipv4 network on ubuntu system. The correpsonding scripts was added
into k8s_common.sh
Signed-off-by: Jingzhao.Ni <Jingzhao.Ni@arm.com>
Change-Id: I94c25067e89064f63e62a59ab12db53c74fc6554
case ${OS_ID_LIKE:-} in
debian)
# Install basic software
+ echo "Acquire::ForceIPv4 \"true\";" | sudo tee -a /etc/apt/apt.conf.d/99force-ipv4 > /dev/null
sudo apt update
sudo apt install -y software-properties-common apt-transport-https curl
# Install Docker as Prerequisite
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
+ curl -4fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb https://download.docker.com/linux/ubuntu \