Dockerfile contributed by oupala: python-gitlab#295
docker build -t me/python-gitlab:VERSION .
docker run -it -v /path/to/python-gitlab.cfg:/python-gitlab.cfg python-gitlab <command> ...
To make things easier you can create a shell alias:
alias gitlab='docker run --rm -it -v /path/to/python-gitlab.cfg:/python-gitlab.cfg python-gitlab