docker pull gogs/gogs
docker pull gogs/gogs
docker run --name=gogs -p 10022:22 -p 10880:3000 -v /var/gogs:/data gogs/gogs
访问,http://IP地址:10880/
docker container ls -all
docker ps -a
docker ps
git init
git add README.md
git commit -m "11111"
git remote add origin http://192.168.10.124:3000/uidadmin/test1.git
git remote rm origin
git remote add origin http://192.168.10.124:10880/uidadmin/test1.git
git push -u origin master
docker start gogs
docker start cacc856746e01e9e4e3e8ee1dd7c73a2ce198f25a5c52f4a050eb7a0a01e4efa
docker: Error response from daemon: Conflict. The container name "/uidgogs" is already in use by container "cacc856746e01e9e4e3e8ee1dd7c73a2ce198f25a5c52f4a050eb7a0a01e4efa". You have to remove (or rename) that container to be able to reuse that name.
docker restart 镜像名
则可以重启该container容器。
docker run --name=uidgogs -p 10023:22 -p 18880:3000 -v /home/uidGitWorkspace:/data gogs/gogs