提交 ffafd954 编写于 作者: S Sharif Elgamal

remove newgrp, add lsof

上级 fe0e087d
......@@ -214,6 +214,8 @@ if [[ "${kprocs}" != "" ]]; then
sudo -E kill ${kprocs} || true
fi
sudo apt-get -y install lsof
# clean up none drivers binding on 8443
none_procs=$(sudo lsof -i :8443 | tail -n +2 | awk '{print $2}' || true)
if [[ "${none_procs}" != "" ]]; then
......
......@@ -29,7 +29,6 @@ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debi
sudo apt-get -y update
sudo apt-get -y install docker-ce docker-ce-cli containerd.io
sudo usermod -aG docker jenkins
sudo newgrp docker
echo "Installing latest kubectl"
curl -LO "https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册