install-docker 正在参加 2020 年度 OSC 中国开源项目评选,请投票支持!
install-docker 在 2020 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
投票让它出道
已投票
install-docker 获得 2020 年度 OSC 中国开源项目评选「最佳人气项目」 !
install-docker 获得 2020 年度 OSC 中国开源项目评选「最佳人气项目」「最积极运营项目」 !
install-docker 获得 2020 年度 OSC 中国开源项目评选「最积极运营项目」 !
授权协议 GPL-3.0
开发语言 SHELL
操作系统 跨平台
软件类型 开源软件
所属分类 云计算Docker 扩展
开源组织
地区 不详
投 递 者 dyrnq
适用人群 未知
收录时间 2021-02-15

软件简介

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
mirror linux(x86_64)
aliyun https://mirrors.aliyun.com/docker-ce/linux/static/stable/x86_64/
163 https://mirrors.163.com/docker-ce/linux/static/stable/x86_64/
tencent https://mirrors.tencent.com/docker-ce/linux/static/stable/x86_64/
huaweicloud https://mirrors.huaweicloud.com/docker-ce/linux/static/stable/x86_64/
tuna https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/static/stable/x86_64/
tsinghua https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/static/stable/x86_64/
ustc https://mirrors.ustc.edu.cn/docker-ce/linux/static/stable/x86_64/
sjtu https://mirror.sjtu.edu.cn/docker-ce/linux/static/stable/x86_64/
zju https://mirrors.zju.edu.cn/docker-ce/linux/static/stable/x86_64/
nju https://mirrors.nju.edu.cn/docker-ce/linux/static/stable/x86_64/
njupt https://mirrors.njupt.edu.cn/docker-ce/linux/static/stable/x86_64/
bfsu https://mirrors.bfsu.edu.cn/docker-ce/linux/static/stable/x86_64/
nwafu https://mirrors.nwafu.edu.cn/docker-ce/linux/static/stable/x86_64/
sustech https://mirrors.sustech.edu.cn/docker-ce/linux/static/stable/x86_64/
hit https://mirrors.hit.edu.cn/docker-ce/linux/static/stable/x86_64/
xtom https://mirrors.xtom.com.hk/docker-ce/linux/static/stable/x86_64/
  • –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

展开阅读全文

代码

的 Gitee 指数为
超过 的项目

评论 (0)

加载中
更多评论
暂无内容
发表于开发技能专区
2020/05/26 06:51

How to install Docker on CentOS8

# How to install Docker on CentOS8 ## Step 1, Prepare Update OS ``` # yum update -y ``` Install download tool ``wget`` ``` # yum install wget -y ``` ## Step 2, Install containerd.io To install docker in CentOS 8 is different from other CentOS versions, if you do not install this package manually, the docker service will not work. Access page https://download.docker.com/linux/centos/7/x86_64/sta...

0
0
发表了博客
2018/10/31 21:17

Ubuntu install docker

https://docs.docker.com/install/linux/docker-ce/ubuntu/ https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user Issues 1. $ docker run hello-world docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/containers/create: dial unix /var/run/docker.sock: connec...

0
0
发表于运维专区
2019/08/17 14:12

docker-compose install

### docker ``` # 安装依赖 yum install -y yum-utils device-mapper-persistent-data lvm2 # 添加docker下载仓库 yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yum makecache fast yum install -y docker-ce-18.06.0.ce systemctl start docker systemctl status docker ``` ### docker-compose https://docs.docker.com/compose/install/ ``` sudo curl -L "https://github.com/d...

0
0
发表了博客
2018/08/20 11:05

Install Jenkins on Docker

1. Install Docker; 2. Download Jenkins image form docker hub (Kitematic is recommended, a docker toolbox with UI); 3. Docker run [image name] ---> start image; 4. Docker ps --> get started docker image info; 5. docker exec -it [container id] bash --> get into docker container;(refer to pic below) 6. Open webpage with url: http://localhost:32771/ 7. unlock jenkins is required: 8. get admin passw...

0
0
发表了博客
2019/12/10 14:34

docker centos install

1. yum update 2. yum install -y yum-utils device-mapper-persistent-data lvm2 3. yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo(阿里仓库) 4 yum list docker-ce 5. yum install docker-ce 6. systemctl start docker systemctl enable docker 7 docker version 9: sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(unam...

0
0
发表于开发技能专区
2020/11/23 22:21

Ubuntu install Docker

1. Uninstall old version sudo apt-get remove docker docker-engine docker.io containerd runc 2. Setup the repository $ sudo apt-get update $ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - $ sudo apt-key fingerprint 0EBF...

1
0
发表于运维专区
2018/10/23 21:22

Windows Install Docker

win7、win8 win7、win8 等需要利用 docker toolbox 来安装,国内可以使用阿里云的镜像来下载,下载地址:http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/ docker toolbox 是一个工具集,它主要包含以下一些内容: Docker CLI 客户端,用来运行docker引擎创建镜像和容器 Docker Machine. 可以让你在windows的命令行中运行docker引擎命令 Docker Compose. 用来运行docker-compose命令 Kitematic. 这是Docker的...

0
0
没有更多内容
加载失败,请刷新页面
点击加载更多
加载中
下一页
暂无内容
0 评论
4 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部