• Prepare paddle in Docker1


    Use Docker

    1. Install Docker

    sudo apt-get install -y docker.io
    

    a) pull repository from server in China, here is a faster mirror:

    sudo docker pull docker.paddlepaddle.org/paddle
    

    b)run an interactive terminal

    sudo docker run -i -t docker.paddlepaddle.org/paddle /bin/bash
    

    c)Install git in container

       apt-get install git
    

    d)Clone paddle tutorial code

       git clone https://github.com/PaddlePaddle/book.git
    

    e)Open another terminal and commit the conntainer

         sudo docker container ls
    
         sudo docker commit -m="Add git and clone padddlepaddle tutorial code" -a="chenrufeng" c6ec649e0f08 paddle_tutorial:v1
    

    PaddlePaddle Book

    You can create a container serving PaddlePaddle Book using Jupyter Notebook in one minute using Docker. PaddlePaddle Book is an interactive Jupyter Notebook for users and developers.If you want to dig deeper into deep learning, PaddlePaddle Book definitely is your best choice.

    We provide a packaged book image, simply issue the command:

    docker run -p 8888:8888 paddlepaddle/book
    

    Then, you would back and paste the address into the local browser:

    http://localhost:8888/
    

    That’s all. Enjoy your journey

    Update paddlepaddle book docker(if above paddlepaddle/book does not work well, you may need update paddlepadde)

    use compile paddlepaddle whl from source code. you can find the guild here.
    and, then you can use python SimpleHttpServer to share your new compiled package.

    sudo python -m SimpleHTTPServer 80
    
    

    you can download the new package in your docker container. after success of downloading your package, replace the old one.

    wget http://192.168.xx.xx/paddlepaddle-xxxxxx.whl
    rm usr/local/lib/python2.7/dist-packages/paddl*
    pip install paddlepaddle-xxxxxx.whl
    

    Open another terminal to commit all changes in container.

    sudo docker commit -m="update padddlepaddle package" -a="chenrufeng" c6ec649e0f08 paddle_book:v2
    

    finally, everything is ready. We can use command line to start jupyter notebook

    sudo docker run -p 8888:8888 paddle_book:v2 jupyter notebook --allow-root --ip=0.0.0.0
    
  • 相关阅读:
    [转]HSPICE软件的应用及常见问题解决
    Node.js基于Express框架搭建一个简单的注册登录Web功能
    Node.js开发Web后台服务
    mysql update 将一个表某字段设为另一个表某字段的值
    一个最简的Thinkphp3.2 操作Mongodb的例子
    MongoDB GUI( Robo 3T) Shell使用及操作
    Robomongo,Mongo可视化工具
    thinkphp mysql和mongodb 完美使用
    大型网站系统架构演化之路
    30个php操作redis常用方法代码例子
  • 原文地址:https://www.cnblogs.com/freebird92/p/8320551.html
Copyright © 2020-2023  润新知