【问题标题】:Jupyter and aarch64Jupyter 和 aarch64
【发布时间】:2017-08-16 19:48:48
【问题描述】:

我有什么:NanoPi Neo2(Allwinner A5(arm v8 x64)处理器,512mb 内存) 我做了什么:

  1. apt-get install docker*
  2. docker pull konmeo/jupyter(得到here
  3. docker run -it --rm -p 8888:8888 4fdcd3a6ff59 它说[C 19:38:32.851 NotebookApp] Running as root is not recommended. Use --allow-root to bypass.
  4. 我跑了docker run -it --rm -p 8888:8888 4fdcd3a6ff59 /usr/bin/jupyter notebook --allow-root,docker 一切正常

    [W 19:40:36.237 NotebookApp] server_extensions is deprecated, use nbserver_extensions
    [I 19:40:36.287 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
    [I 19:40:39.827 NotebookApp] hide_code: Attempting to load hid_code export handler extensions.
    [I 19:40:39.839 NotebookApp] hide_code: Hide_code export handler extensions loaded.
    [I 19:40:39.972 NotebookApp] Loading IPython parallel extension
    [I 19:40:40.238 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.2.4
    [I 19:40:40.242 NotebookApp] Serving notebooks from local directory: /notebooks
    [I 19:40:40.243 NotebookApp] 0 active kernels 
    [I 19:40:40.244 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=89a3809bd589557e08e31d7fbd475e6e17bb333fe2311745
    [I 19:40:40.245 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
    [W 19:40:40.248 NotebookApp] No web browser found: could not locate runnable browser.
    [C 19:40:40.250 NotebookApp] 
    
         Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
            http://localhost:8888/?token=89a3809bd589557e08e31d7fbd475e6e17bb333fe2311745
    

    但我既无法使用本地设备上的浏览器,也无法在本地网络中使用 http://ip:8888/

我应该怎么做才能让它工作?

【问题讨论】:

  • 您是否尝试访问提供的 URL?您是否包含令牌?是否有任何类型的防火墙阻止对端口 8888 的访问?
  • @ForceBru 是的,带有令牌的完整 URL,没有额外的防火墙规则

标签: python docker arm jupyter arm64


【解决方案1】:

尝试将 docker 绑定到所有接口。

-p 0.0.0.0:8888:8888

【讨论】:

  • Elinks 说:无法检索localhost:8888/&token=....:连接被对等方重置
  • 你是想在 NanoPi 本身还是在另一台机器上点击 localhost
  • 在 NanoPi 上,这就是我担心的原因
  • 尝试运行 Python 的 http 服务器,看看是否可以点击 python -m SimpleHTTPServer 8000。访问http://localhost:8000
猜你喜欢
  • 2021-09-04
  • 1970-01-01
  • 2015-10-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-07-05
  • 2020-11-01
相关资源
最近更新 更多