参考文章:http://blog.csdn.net/zhangjk1993/article/details/50380403
http://gitbook.zhangjikai.com/
搜索gitbook image
https://c.163.com/hub#/m/home/
https://hub.docker.com/
- 下载镜像,使用163的举例
docker pull hub.c.163.com/tianshuhua/gitbook:latest
-启动命令
sudo docker run -p 4000:4000 -v "$PWD/docs:/srv/gitbook" -v "$PWD/html:/srv/html" tianshuhua/dockerbook
sudo docker run -v "$PWD/docs:/srv/gitbook" -v "$PWD/html:/srv/html" tianshuhua/dockerbook gitbook init
sudo docker run -v "$PWD/docs:/srv/gitbook" -v "$PWD/html:/srv/html" tianshuhua/dockerbook gitbook build
sudo docker run -v "$PWD/docs:/srv/gitbook" -v "$PWD/html:/srv/html" tianshuhua/dockerbook gitbook pdf ./ ../book.pdf
sudo docker run -v "$PWD/docs:/srv/gitbook" -v "$PWD/html:/srv/html" tianshuhua/dockerbook gitbook epub ./ ./book.epub
网友评论