# Pull image from Docker Hub.
$ docker pull gogs/gogs
# Create local directory for volume.
$ mkdir-p /var/gogs
# Use `docker run` for the first time.
$ docker run --name=gogs -d-p10022:22 -p10880:3000 -v /var/gogs:/data gogs/gogs
# Use `docker start` if you have stopped it.
$ docker start gogs