安装脚本内容如下:
!/bin/bash
pass=$1
echo $pass | sudo -S apt-get update
echo $pass | sudo -S apt-get -y install linux-image-extra-$(uname -r) linux-image-extra-virtual
echo $pass | sudo -S apt-get -y install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
echo $pass | sudo -S apt-key fingerprint 0EBFCD88
echo $pass | sudo -S add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
echo $pass | sudo -S apt-get update
echo $pass | sudo -S apt-get -y install docker-ce=17.03.2ce-0ubuntu-trusty
网友评论