docker安装

2018-06-29  本文已影响0人  徐德东

安装脚本内容如下:

!/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

上一篇 下一篇

猜你喜欢

热点阅读