Docker deploys gogs warehouse

Docker deploys gogs Git repository

pull image

docker pull gogs/gogs

image-20230825162437501

View local mirror

docker images

image-20230825162502015

Start the gogs warehouse service

Create data hanging in the directory

I /rootcreate gogs in the directory and hang in the directory

mkdir gogs

image-20230825162702000

image-20230825163157806

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

insert image description here

insert image description here

Guess you like

Origin blog.csdn.net/A_yonga/article/details/132499490