Originally from here, but ran into two issues.
The only change is that the entry point is now pointing to gollum directly, no path is assumed.
$ mkdir root.git && cd root.git
$ git init --bare --shared=group
$ docker run -p 80:4567 -v $(pwd):/root.git --rm mottosso/gollum /root.git
For other options, see the original docker package.
docker pull mottosso/gollum:latest