拉取镜像

docker pull fellah/gitbook

运行

docker run -p 8005:4000 -v $PWD:/srv/gitbook fellah/gitbook 

编译静态网页

docker run -v /srv/gitbook -v /srv/html fellah/gitbook gitbook build . /srv/html 

参考

https://hub.docker.com/r/fellah/gitbook