diff --git "a/sig/T-One/content/\347\224\250\346\210\267\346\214\207\345\215\227/\351\203\250\347\275\262\346\211\213\345\206\214/T-One\346\211\213\345\212\250\351\203\250\347\275\262.md" "b/sig/T-One/content/\347\224\250\346\210\267\346\214\207\345\215\227/\351\203\250\347\275\262\346\211\213\345\206\214/T-One\346\211\213\345\212\250\351\203\250\347\275\262.md" index a9fc483340cc005b14bc2e4068a6e3ffa05d3c34..c5240f33d155cb363654f8be20375d1bd851f23e 100644 --- "a/sig/T-One/content/\347\224\250\346\210\267\346\214\207\345\215\227/\351\203\250\347\275\262\346\211\213\345\206\214/T-One\346\211\213\345\212\250\351\203\250\347\275\262.md" +++ "b/sig/T-One/content/\347\224\250\346\210\267\346\214\207\345\215\227/\351\203\250\347\275\262\346\211\213\345\206\214/T-One\346\211\213\345\212\250\351\203\250\347\275\262.md" @@ -26,17 +26,26 @@ ## 1. 环境准备 ### a. 安装docker + +``` yum -y install yum-utils yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo yum install -y docker-ce # 若出错:yum install -y docker-ce --nobest --allowerasing +``` + +### 启动docker - # 启动docker +``` systemctl enable docker systemctl start docker systemctl status docker +``` > [更多docker安装配置](https://yeasy.gitbook.io/docker_practice/install) + ### b. 配置docker源 + +``` vim /etc/docker/daemon.json { "registry-mirrors": [ @@ -46,12 +55,20 @@ "https://registry.docker-cn.com"] } systemctl restart docker - # 建议使用国内镜像源。 阿里云: https://6kx4zyno.mirror.aliyuncs.com,网易: http://hub-mirror.c.163.com +``` +### 建议使用国内镜像源。 + +``` +阿里云: https://6kx4zyno.mirror.aliyuncs.com,网易: http://hub-mirror.c.163.com +``` ### c. 安装docker-compose + +``` pip3 install --upgrade pip pip3 install docker-compose docker-compose --version +``` ## 2. 项目构建