14 lines
383 B
Markdown
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
|
|
``` |