Docker deploys gogs Git repository
pull image
docker pull gogs/gogs
View local mirror
docker images
Start the gogs warehouse service
Create data hanging in the directory
I /root
create gogs in the directory and hang in the directory
mkdir gogs
start gogs
docker run --name=gogs -d -p 10022:22 -p 10880:3000 -v /root/gogs:/data gogs/gogs
10022 is the ssh port where the server exposes gogs, and 10880 is the http port
Access: ip:10880 access page, basic information needs to be configured for the first deployment