美文网首页
docker安装

docker安装

作者: 徐德东 | 来源:发表于2018-06-29 10: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

相关文章

网友评论

      本文标题:docker安装

      本文链接:https://www.haomeiwen.com/subject/slgoyftx.html