美文网首页
docker部署gitbook

docker部署gitbook

作者: 请你吃糖 | 来源:发表于2017-03-17 20:13 被阅读240次

    参考文章: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
    

    相关文章

      网友评论

          本文标题:docker部署gitbook

          本文链接:https://www.haomeiwen.com/subject/uudynttx.html