Skip to content

Commit

Permalink
update docker docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzhao committed Nov 24, 2020
1 parent 6d1f131 commit 6f24b9a
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 2 deletions.
6 changes: 6 additions & 0 deletions DevOps/CICD.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -361,3 +361,9 @@ volumes:
drone-data:
```
10 changes: 10 additions & 0 deletions docker/1、docker系列之docker容器入门.md
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,14 @@ docker-compose up -d --scale redis=2

### 数据持久化



在Docker中,要想实现数据的持久化(所谓Docker的数据持久化即***数据不随着 Container的结束而删除***),需要将数据从宿主机挂载到容器中。





docker 镜像是以 layer 概念存在的,一层一层的叠加,最终成为我们需要的镜像。

但该镜像的每一层都是 `ReadOnly` 只读的。只有在我们运行容器的时候才会创建读写层。文件系统的隔离使得:
Expand All @@ -986,6 +994,8 @@ docker 为我们提供了三种不同的方式将数据挂载到容器中:volu

#### volume 方式

volume 是数据卷

volume 方式是 docker 中数据持久化的最佳方式。

- volume 可以通过 `docker volume` 进行管理,如创建、删除等操作。
Expand Down
Empty file added gitlab/gitlab-CICD.markdown
Empty file.
33 changes: 33 additions & 0 deletions gitlab/gitlab_ops_guide.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 安装



### Requirements



操作系统

GITLAB支持的操作系统:

- Ubuntu (16.04/18.04/20.04)
- Debian (9/10)
- CentOS (6/7/8)
- openSUSE (Leap 15.1/Enterprise Server 12.2)
- Red Hat Enterprise Linux (please use the CentOS packages and instructions)
- Scientific Linux (please use the CentOS packages and instructions)
- Oracle Linux (please use the CentOS packages and instructions)



不支持的操作系统:

- Arch Linux
- Fedora
- FreeBSD
- Gentoo
- macOS



**软件要求**
13 changes: 13 additions & 0 deletions gitlab/gitlab备份与还原.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


# 备份





备份主要包括:

- 配置文件
- 数据文件
-
8 changes: 6 additions & 2 deletions mysql/MySQL高可用方案/2.MySQL-MHA部署.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,17 +316,18 @@ vim /etc/mha/default.cnf

# MHA数据库监控账号
user=mhamanager
password=admin@123
password=QHdata@123

# MySQL主从复制账号
repl_user=mharep
repl_password=admin@123
repl_password=QHdata@123

# 使用ssh的账号
ssh_user=root

# manager工作目录
manager_workdir=/masterha/app1

# manager日志
manager_log=/masterha/app1/manager.log
# 设置远端mysql在发生切换时binlog的保存位置
Expand Down Expand Up @@ -377,6 +378,9 @@ master_binlog_dir=/data/3306/binlog/
no_master=1 # 设置的不为备选主库





################################################################################################################################


Expand Down

0 comments on commit 6f24b9a

Please sign in to comment.