0
点赞
收藏
分享

微信扫一扫

Linux脚本自动安装 docker

探头的新芽 2024-07-24 阅读 22

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

 curl -fsSL https://test.docker.com -o install-docker.sh
 sudo 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>

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

举报

相关推荐

0 条评论