Skip to content

Commit cb21f01

Browse files
committed
修改配置
清理无用文件
1 parent d0f8f81 commit cb21f01

File tree

8 files changed

+73
-311
lines changed

8 files changed

+73
-311
lines changed

.vuepress/config/function.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,16 @@ function genSidebar4develop() {
401401
"test/tools/postman/postman-use.md",
402402
"test/tools/robotframework/robotframework-use.md",
403403
]
404-
}
404+
},
405+
{
406+
title: "工具",
407+
collapsable: false,
408+
sidebarDepth: 0,
409+
children: [
410+
"tools/tools-conan.md",
411+
"tools/tools-install.md",
412+
]
413+
},
405414
];
406415
}
407416

@@ -726,10 +735,8 @@ function genSidebar4Devops() {
726735
"tools/tools-gdb.md",
727736
"tools/tools-cmake-install.md",
728737
"tools/tools-cmake.md",
729-
"tools/tools-conan.md",
730738
"tools/tools-curl.md",
731739
"tools/tools-gcc-warning-opt.md",
732-
"tools/tools-install.md",
733740
"tools/tools-vscode-plugin.md"
734741
]
735742
},
-645 Bytes
Loading

md/article/problem/article-problem-docker-pull.md

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,67 @@
44
55
[[toc]]
66

7+
# Centos搭建过程
8+
9+
## 安装docker
10+
11+
```sh
12+
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
13+
sudo yum-config-manager --add-repo http://mirrors.cloud.tencent.com/docker-ce/linux/centos/docker-ce.repo
14+
sudo yum install -y docker-ce docker-ce-cli containerd.io
15+
sudo systemctl start docker
16+
sudo systemctl enable docker
17+
```
18+
19+
## 安装docker-compose
20+
21+
```sh
22+
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
23+
chmod 777 /usr/local/bin/docker-compose
24+
docker-compose version
25+
```
26+
27+
## 修改docker配置文件
28+
29+
```sh
30+
sudo mkdir -p /etc/docker
31+
vi /etc/docker/daemon.json
32+
```
33+
34+
json内容
35+
```json
36+
{
37+
"registry-mirrors": [
38+
"https://hub-mirror.c.163.com",
39+
"https://mirror.ccs.tencentyun.com",
40+
"https://05f073ad3c0010ea0f4bc00b7105ec20.mirror.swr.myhuaweicloud.com",
41+
"https://registry.docker-cn.com",
42+
"https://docker.m.daocloud.io",
43+
"https://docker.1panel.live",
44+
"https://hub.rat.dev",
45+
"https://dockerpull.com",
46+
"https://dockerproxy.cn",
47+
"https://docker.rainbond.cc",
48+
"https://docker.udayun.com",
49+
"https://docker.211678.top"
50+
]
51+
}
52+
```
53+
54+
## 重启docker
55+
56+
```sh
57+
sudo systemctl daemon-reload
58+
sudo systemctl restart docker
59+
```
60+
61+
## 配置git
62+
63+
```
64+
ssh-keygen -t rsa -b 4096 -C "407073648@qq.com"
65+
cat ~/.ssh/id_rsa.pub
66+
```
67+
768
# 搭建docker环境
869

970
## 问题
@@ -22,7 +83,8 @@ docker: Error response from daemon: Get “https://registry-1.docker.io/v2/
2283

2384
```sh
2485
sudo mkdir -p /etc/docker
25-
sudo tee /etc/docker/daemon.json <<EOF
86+
vi /etc/docker/daemon.json
87+
2688
{
2789
"registry-mirrors": [
2890
"https://hub-mirror.c.163.com",

md/database/mysql/basic/mysql-basic-view_demo.md

Lines changed: 0 additions & 285 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)