From 3268ba266204e87b8a3c6757502e7ab76d18a3e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E7=AB=8B?= <404325854@qq.com> Date: Fri, 14 Jun 2024 08:47:15 +0000 Subject: [PATCH] =?UTF-8?q?update=20sig/T-One/content/=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=8C=87=E5=8D=97/=E9=83=A8=E7=BD=B2=E6=89=8B=E5=86=8C/T-One?= =?UTF-8?q?=E6=89=8B=E5=8A=A8=E9=83=A8=E7=BD=B2.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 苏立 <404325854@qq.com> --- ...13\345\212\250\351\203\250\347\275\262.md" | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) 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 a9fc48334..c5240f33d 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. 项目构建 -- Gitee