命令
修改 docker 源,来自 y0ngb1n/docker-registry-mirrors.md
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [
"https://dockerproxy.com",
"https://docker.mirrors.ustc.edu.cn",
"https://docker.nju.edu.cn"
]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
[shell]
运行备份
docker exec -u git -it -w /tmp 你的容器名 bash -c '/usr/local/bin/gitea dump'
[shell]