diff --git a/gitlab/index.html b/gitlab/index.html index de327e0..4acb7f8 100644 --- a/gitlab/index.html +++ b/gitlab/index.html @@ -207,6 +207,20 @@
docker exec 容器名或容器ID gitlab-ctl reconfigure
+ # 从xxxxx编号备份中恢复
+# 然后恢复数据,1406691018为备份文件的时间戳
+gitlab-rake gitlab:backup:restore BACKUP=1406691018
+
+# 新版本 1721392543_2024_07_19_17.0.1_gitlab_backup.tar
+gitlab-rake gitlab:backup:restore BACKUP=1721392543_2024_07_19_17.0.1
+
docker stop gitlab # 停止容器
@@ -688,6 +702,7 @@ 备份保留七天
+
备份恢复
容器管理
通过 Docker Compose 安装
使用 Docker Swarm
diff --git a/index.html b/index.html
index 4db4310..14e0fd2 100644
--- a/index.html
+++ b/index.html
@@ -296,14 +296,24 @@
由于国区已经无法访问,可以将镜像打包,直接安装镜像压缩文件
-$ docker pull gitlab/gitlab-ce:17.0.1-ce.0 # 下载镜像 -# 保存 Docker 镜像到本地文件 -$ docker save -o [output-file.tar] [image-name] -$ docker save -o gitlab-ce-17.0.1.tar gitlab/gitlab-ce -
$ docker pull gitlab/gitlab-ce:17.2.0-ce.0 # 下载镜像 +$ docker pull --platform linux/amd64 gitlab/gitlab-ce:17.2.0-ce.0 +$ docker pull --platform linux/amd64 portainer/portainer-ce:2.20.3-alpine +$ docker pull --platform linux/amd64 portainer/agent:2.20.3-alpine +# 保存 Docker 镜像到本地文件 +$ docker save -o [output-file.tar] [image-name] +$ docker save -o gitlab-ce.0-17.2.0.tar gitlab/gitlab-ce:17.2.0-ce.0 +$ docker save -o portainer-agent-2.20.3-alpine.tar portainer/agent:2.20.3-alpine +$ docker save -o portainer-ce-2.20.3-alpine.tar portainer/portainer-ce:2.20.3-alpine +
将镜像文件发送到服务器
$ scp [output-file.tar] [user]@[server-ip]:[path]
@@ -720,7 +730,7 @@
- @@ -833,6 +843,8 @@⚠文件挂载注意:docker 禁止用主机上不存在的文件挂载到 container 中已经存在的文件
Navidrome
Jenkins
Humpback
首先创建放持久化数据文件夹,mkdir -p /opt/app/humpback-web
,里面存放持久化数据文件,会存储站点管理和分组信息,启动后请妥善保存。
# 创建放持久化数据文件夹
@@ -870,16 +882,16 @@
docker run -d --name seafile \
- -e SEAFILE_SERVER_HOSTNAME=pan.showgold.com \
- -e SEAFILE_ADMIN_EMAIL=wcj@nihaosi.com \
- -e SEAFILE_ADMIN_PASSWORD=wcj@nihaosi.com \
+ -e SEAFILE_SERVER_HOSTNAME=pan.example.com \
+ -e SEAFILE_ADMIN_EMAIL=wcj@example.com \
+ -e SEAFILE_ADMIN_PASSWORD=wcj@example.com \
-v $HOME/_docker/seafile-data:/shared \
-p 80:80 \
seafileltd/seafile:latest
测试
-