版权归作者所有,转载请注明出处
查看ubuntu版本
cat/proc/version
先更新到最新的软件版本
apt-get update
安装系统工具
apt-get -y install apt-transport-https ca-certificates curl software-properties-common安装gpg证书
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | apt-key add -写入阿里云镜像源地址
add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"再一次更新
apt-get -y update安装docker
apt-get -y install docker-ce测试docker是否正常启动
Docker ps -a
因为我没拉取镜像,能使用docker了,就表示已经安装成功。可以用来建各种功能服务,例如青龙面板、mysql等
例如我在其他服务器上的青龙面板