Commit a8ac8273 by tingweiwang

Update add_node.sh

1 parent 67b66ed8
Showing with 1 additions and 1 deletions
...@@ -59,7 +59,7 @@ if [ $test -gt 1 ];then ...@@ -59,7 +59,7 @@ if [ $test -gt 1 ];then
sed -i s/harbor_host/$harbor_host/g /root/k8s/config/daemon.json_gpu sed -i s/harbor_host/$harbor_host/g /root/k8s/config/daemon.json_gpu
echo "开始安装docker" echo "开始安装docker"
ansible new_node -m shell -a "apt update --allow-insecure-repositories" ansible new_node -m shell -a "apt update --allow-insecure-repositories"
ansible new_node -m shell -a "apt install conntrack docker-ce -y --allow-unauthenticated" ansible new_node -m shell -a "apt install conntrack unzip docker-ce -y --allow-unauthenticated"
echo "分发已修改的gpu daemon.json文件" echo "分发已修改的gpu daemon.json文件"
ansible new_node -m copy -a "src=/root/k8s/config/daemon.json_gpu dest=/etc/docker/daemon.json" ansible new_node -m copy -a "src=/root/k8s/config/daemon.json_gpu dest=/etc/docker/daemon.json"
ansible new_node -m copy -a "src=/root/k8s/service/docker.service dest=/lib/systemd/system/docker.service mode=755" ansible new_node -m copy -a "src=/root/k8s/service/docker.service dest=/lib/systemd/system/docker.service mode=755"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!