Workaround for docker hub

This PS adds a workaround to HTTP 503 error while runnign a container
directly from docker hub

Change-Id: I77dd8604a9324983252df452f611e0d4684a56b6
This commit is contained in:
Sergiy Markin 2023-08-30 17:27:29 +00:00
parent eda2aafd34
commit b4e463ae4e
1 changed files with 8 additions and 0 deletions

View File

@ -267,6 +267,14 @@ git clone https://github.com/containernetworking/plugins.git
pushd plugins
git checkout v0.8.5
popd
for t in 1 2 3 4
do
sleep $t
if docker pull golang:1.13.8
then
break
fi
done
docker run --rm -v ./plugins:/usr/local/src -w /usr/local/src golang:1.13.8 bash -c './build_linux.sh'
sudo mkdir -p /opt/cni
sudo cp -a plugins/bin /opt/cni/