当前位置: 首页 > news >正文

Linux脚本自动安装 docker

使用官方安装脚本自动安装
需使用 root 或sudu 权限账户安装
安装命令如下:

 curl -fsSL https://test.docker.com -o install-docker.shsudo sh install-docker.sh

脚本中指令:

–version

安装指定版本

Use the --version option to install a specific version, for example:

$ sudo sh install-docker.sh --version 23.0

–channel <stable|test>

安装指定发行版(稳定版/测试版)

Use the --channel option to install from an alternative installation channel.
The following example installs the latest versions from the “test” channel,
which includes pre-releases (alpha, beta, rc):

$ sudo sh install-docker.sh --channel test

Alternatively, use the script at https://test.docker.com, which uses the test
channel as default.

–mirror <Aliyun|AzureChinaCloud>

使用指定国内源安装(应对无法连接 docker 的情况)
可选Aliyun/AzureChinaCloud

Use the --mirror option to install from a mirror supported by this script.
Available mirrors are “Aliyun” (https://mirrors.aliyun.com/docker-ce), and
“AzureChinaCloud” (https://mirror.azure.cn/docker-ce), for example:

$ sudo sh install-docker.sh --mirror AzureChinaCloud

http://www.lryc.cn/news/391055.html

相关文章:

  • 【计算智能】遗传算法(一):基本遗传算法(SGA)理论简介
  • win10系统让当前用户拥有管理员权限
  • Redis持久化的三种方式(RDB、AOF和混合)
  • Telnet发送get/post请求
  • PostgreSQL匹配字符串方法
  • Docker镜像加速配置
  • 【elementui】记录解决el-tree开启show-checkbox后,勾选一个叶结点后会自动折叠的现象
  • 用Vue3和Plotly.js绘制交互式3D烛形图
  • git上传文件
  • Redis 7.x 系列【16】持久化机制之 AOF
  • 使用 PostGIS 生成矢量图块
  • WebSocket 心跳机制如何实现
  • Docker 容器连接
  • 【C语言】continue 关键字
  • Taro + vue3 中微信小程序中实现拉起支付
  • 003-GeoGebra如何无缝嵌入到PPT里
  • AI:开发者的朋友还是对手?
  • 如何在Android Studio中查看APP客户端日志
  • 2024微信小程序期末大作业-点奶茶微信小程序(后端nodejs-server)(附下载链接)_微信小程序期末大作业百度网盘下载
  • Qt:4.信号和槽
  • Ubuntu20.04更新GLIBC到2.35版本
  • Qt 实战(7)元对象系统 | 7.1、简介
  • iOS 真机打包,证书报错No signing certificate “iOS Distribution” found
  • 2024年7月3日 (周三) 叶子游戏新闻
  • linux守护进程生命周期管理-supervisord
  • rtpengine_mr12.0 基础建设容器运行
  • 逐步深入:掌握sklearn中的增量学习
  • 【机器学习】机器学习与图像识别的融合应用与性能优化新探索
  • Unity射击游戏开发教程:(29)躲避敌人的子弹射击
  • SpringCloud Gateway 网关获取或修改接口响应数据