如何启动张量流量码头笔记本电脑

如何启动张量流量码头笔记本电脑

本文介绍了如何启动张量流量码头笔记本电脑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个docker noob问题,但我会很感激一些帮助。我已经在ubuntu机器上安装了tensorflow docker容器。张力流码头工程师

  • 然后打开浏览器并连接到 http:// localhost:8810 (或您在主机端口部分设置的任何端口

  • 让您的花式裤子机器学习应用程序!


  • This is probably a docker noob question, but I'd appreciate some help. I've installed the tensorflow docker container on an ubuntu machine. The tensorflow docker setup instructions specify:

    docker run -it b.gcr.io/tensorflow/tensorflow
    

    This puts me into the docker container terminal, and I can run python and execute the Hello World example. I can also manually run .\run_jupyter.sh to start the jupyter notebook. However, I can't reach the notebook from host.

    How do I start the jupyter notebook such that I can use the notebook from the host machine? Ideally I would like to use docker to launch the container and start jupyter in a single command.

    解决方案

    For a Linux host Robert Graves answer will work, but for Mac OS X or Windows there is more to be done because docker runs in a virtual machine.

    So to begin launch the docker shell (or any shell if you are using Linux) and run the following command to launch a new TensorFlow container:

    docker run -p 8888:8888 -p 6006:6006 b.gcr.io/tensorflow/tensorflow ./run_jupyter.sh
    

    Then for Mac OS X and Windows you need to do the following only once:

    1. Open VirtualBox
    2. Click on the docker vm (mine was automatically named "default")
    3. Open the settings by clicking settings
    4. In the network settings open the port forwarding dialog
    5. Click the + symbol to add another port and connect a port from your mac to the VM by filling in the dialog as shown below. In this example I chose port 8810 because I run other notebooks using port 8888.
    6. then open a browser and connect to http://localhost:8810 (or whichever port you set in the host port section
    7. Make your fancy pants machine learning app!

    这篇关于如何启动张量流量码头笔记本电脑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

    07-27 19:57