notes/Ubuntu/gitea搭建.md
2024-04-29 02:07:50 +08:00

391 B

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.21.1/gitea-1.21.1-linux-amd64
chmod +x gitea
./gitea web