install-docker一键安装 docker 二进制文件
install-docker 是一个一键安装 docker 二进制文件的脚本,支持从 Tuna、Aliyun 等镜像下载安装 docker 二进制文件,并同时支持 docker-compose 从国内镜像下载安装。
快速开始
curl -fsSL https://cdn.jsdelivr.net/gh/dyrnq/install-docker@main/install-docker.sh | bash -s docker --mirror Tuna --version 20.10.3 --with-compose --compose-version 1.28.2 --compose-mirror daocloud
获取
git clone --depth 1 https://github.com/dyrnq/install-docker.git
curl -fsSL -O https://raw.githubusercontent.com/dyrnq/install-docker/main/install-docker.sh
chmod +x ./install-docker.sh
用法
- –mirror
- –with-compose
./install-docker.sh --mirror Tuna --version 20.10.3 --prefix /usr/local/bin --with-compose --compose-version 1.28.2 --compose-mirror daocloud --compose-prefix /usr/local/bin
命令行选项
Name | Description | Default |
---|---|---|
–mirror | mirror of docker binary download url | |
–prefix | docker binary installation directory | /usr/local/bin |
–version | docker binary version | 20.10.2 |
–with-compose | install docker-compose | |
–compose-prefix | docker-compose installation directory | /usr/local/bin |
–compose-version | docker-compose version | 1.28.2 |
–compose-mirror | mirror of docker-compose download url | |
–systemd-mirror | mirror of dockerd`s systemd unit files | jsdelivr |
–no-systemd | do not install dockerd`s systemd unit files | |
–daemon-json | daemon.json path or url | |
–no-daemon-json | do not install daemon.json | |
–daemon-json-prefix | daemon.json path | /etc/docker |
–dry-run | dry run |
Tks
评论