notes/Ubuntu/gitea搭建.md
2023-11-13 22:37:27 +08:00

14 lines
383 B
Markdown

# gitea 搭建
## 创建容器
```
docker run --privileged --mount type=bind,source=/home/hehaoyang/works/gitea,target=/home/hehaoyang/workspace --name="gitea" -d -i -t -p 3000:3000 ubuntu_18_04
docker start gitea
docker attach gitea
sudo apt install git wget -y
cd workspace/gitea
wget -O gitea https://dl.gitea.com/gitea/1.19/gitea-1.19-linux-amd64
chmod +x gitea
./gitea web
```